Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
raygpt opened this issue Jun 28, 2022 · 0 comments

Comments

@raygpt
Copy link

raygpt commented Jun 28, 2022

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 raygpt changed the title Ability to pass options to constructor to alter resolverValidationOptions in makeExecutableSchema Ability to pass options to constructor to customize behavior of makeExecutableSchema Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant