Skip to content

Multiple schema directives syntax in @graphql-tools/schema v8 #3419

Answered by ardatan
vladshcherbin asked this question in Q&A
Discussion options

You must be logged in to vote

schemaTransforms has been removed so you can chain the functions that manipulate the schema by yourself.
For example;

const directiveTransformers = [userDirectiveTransformer, validUserDirectiveTransformer];
const schema = directiveTransformers.reduce((schema, transformer) => transformer(schema), makeExecutableSchema({ typeDefs }))

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ECCKaka
Comment options

Answer selected by n1ru4l
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ardatan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants