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

Error in "Loading schema for ...": GraphQLSchemaValidationError: Unknown directive "@aws_subscribe". #59

Open
venkateshpullaganti opened this issue Feb 23, 2022 · 0 comments

Comments

@venkateshpullaganti
Copy link

venkateshpullaganti commented Feb 23, 2022

Hi,
I have a problem while adding the extension with the local schema file.
We are using aws-app-sync. Below is the example schema

Type Article{
  title:String!
  description:String
  author:Author
}

type Subscription {
   updateTitleSubscription(domain: String!): Article
      @aws_subscribe(mutations: ["updateTitle"])
}

my apollo.config.js

module.exports = {
   client: {
      includes: [
         './src/**/stores/**/*.js',
         './src/**/stores/**/*.ts',
         './src/**/stores/**/*.tsx'
      ],
      service: {
         localSchemaFile: './src/graphql/schema.graphql'
      }
   }
}

Is there a way to add custom decorators like above or shall i remove them to work?
TIA 😃

┆Issue is synchronized with this Jira Task by Unito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant