We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://docs.aws.amazon.com/appsync/latest/devguide/real-time-data.html
Is there any way to implement the @aws_subscribe?
For example,
import { GraphQLSchema, GraphQLObjectType, GraphQLString, printSchema, GraphQLFieldConfig } from 'graphql'; export function handler() { const schema = new GraphQLSchema({ query: new GraphQLObjectType({ name: 'Query', fields: { hello: { type: GraphQLString, resolve() { return 'world'; } } } }), subscription: new GraphQLObjectType({ name: 'Subscription', fields: { subscription:<GraphQLFieldConfig<any, any>> { type: GraphQLString, resolve() { return 'world'; } } } }) }); const x = printSchema(schema); console.log(x); }
will output
type Query { hello: String } type Subscription { subscription: String }
How can I make it like
type Query { hello: String } type Subscription { subscription: String @aws_subscribe(mutations: ["addPost"]) }
Thank you.
The text was updated successfully, but these errors were encountered:
@nealyip Currently there is no way to do this. Possible solutions are discussed in #1343
Sorry, something went wrong.
No branches or pull requests
https://docs.aws.amazon.com/appsync/latest/devguide/real-time-data.html
Is there any way to implement the @aws_subscribe?
For example,
will output
How can I make it like
Thank you.
The text was updated successfully, but these errors were encountered: