EasyGraphQL / easygraphql-tester

Test GraphQL queries, mutations and schemas on an easy way! 🚀
https://easygraphql.com/docs/easygraphql-tester/overview
MIT License
314 stars 34 forks source link

Ability to pass options to constructor to customize behavior of makeExecutableSchema #148

Open raygpt opened 2 years ago

raygpt commented 2 years ago

Currently, the library does not allow custom options to be passed to makeExecutableSchema in tester.js.

Is it possible to allow a third options parameter to be passed to the tester constructor so users can define optional variables below:

const { makeExecutableSchema } = require('apollo-server');

const jsSchema = makeExecutableSchema({
  typeDefs,
  resolvers,
  logger, // optional
  allowUndefinedInResolve = false, // optional
  resolverValidationOptions = {}, // optional
  directiveResolvers = null, // optional
  schemaDirectives = null,  // optional
  parseOptions = {},  // optional
  inheritResolversFromInterfaces = false  // optional
});

in order to customize the logging and validation behavior of their tests so unnecessary validation errors are not thrown if unwanted?