easygraphql-tester icon indicating copy to clipboard operation
easygraphql-tester copied to clipboard

Ability to pass options to constructor to customize behavior of makeExecutableSchema

Open raygpt opened this issue 3 years ago • 0 comments

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?

raygpt avatar Jun 28 '22 23:06 raygpt