You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also facing issues with custom directives when using codegen. Everything works fine without codegen, when entire schema is kept in one single file, as shown in samples here. However, when I introduced codegen to generate the schema dynamically, then the directive transformer function is not getting executed when the field is queried.
Custom directive for input is not working in Apollo version 3
Description
I'm following a tutorial at graphql-tools for Enforcing value restrictions to build a directive to validate length of string input.
Expected
If the length's name input exceeds the specified, i hope throwing any ValidateError or Error
My Environment:
@graphql-tools/utils: 8.1.1
apollo-server-core: ^3.3.0
typescript: ^4.4.3
@graphql-tools/utils: 8.1.1
,Schema build
Constructor of Apollo Server
Length directive, to short you can watch this link
I know this is a bug of version 3 ApolloServer, but can other way to fix it. Please help me. Thanks a lot.
The text was updated successfully, but these errors were encountered: