Skip to content

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

Open
@raygpt

Description

@raygpt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions