-
Notifications
You must be signed in to change notification settings - Fork 189
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
Invalid GraphQL schema: There can be only one directive named "@aws_cognito_user_pools". #590
Comments
Running into this problem as well with globbing There can be only one directive named "@aws_iam". |
Hi @bboure In relation to the issue above I was wondering if you have managed to look it. I debugged the code and have found the offending code.
inside the
You're are prepending the AWS_TYPES to the schema which is fine if you don't have these types defined in your schema. However if you have lint on your schema you will have errors if you don't define the AWS_TYPES. Can you make including types optional or remove them. |
You should not add those declarations in your schema, they are internal to AppSync and should not be uploaded. I'd try to see if you can configure your linter to use external declarations somewhere. What are you using? |
Hey there
I am using app-sync directives inside my graphql schema
However when I upload this using the serverless framework I am getting error
This used to work with the previous v1. Do you have an idea what the problem might be
The text was updated successfully, but these errors were encountered: