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

Extending resolvers in createSchema not working #14

Closed
fjcero opened this issue Apr 6, 2018 · 3 comments
Closed

Extending resolvers in createSchema not working #14

fjcero opened this issue Apr 6, 2018 · 3 comments

Comments

@fjcero
Copy link

fjcero commented Apr 6, 2018

This syntax is not working in the NPM version. Probably a release is pending.

const resolvers = {
  UUID: GraphQLUUID
}

const typeDefs = this.graphQLFactory.mergeTypesByPaths('./**/*.graphql');
const schema = this.graphQLFactory.createSchema({ typeDefs, resolvers });
@yuluyi
Copy link

yuluyi commented May 28, 2018

+1
Resolvers from this.resolversExplorerService.explore() will overwrite the ones in schemaDefinition

createSchema(schemaDefintion = { typeDefs: {} }) {
        return graphql_tools_1.makeExecutableSchema(Object.assign({}, schemaDefintion, { resolvers: this.resolversExplorerService.explore() }));
}

@kamilmysliwiec
Copy link
Member

This issue is fixed in the latest version - v3.0.0.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants