Repository navigation
feat(appsync): add support for subscriptions for code-first schema generation - #10078
Conversation
|
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
…asing" This reverts commit f3c77e3.
| is the only exposed type that users can access to invoke a response to a mutation. This means | ||
| you can make any data source real time by specificy a GraphQL Schema directive on a mutation. | ||
|
|
||
| **Note**: The AWS AppSync client SDK automatically handles subscription connection management. |
There was a problem hiding this comment.
is this something users need to consider when using subscriptions? it's not something they can affect in through their CDK app right?
There was a problem hiding this comment.
i think its nice to have something here because subscriptions are unique to AppSync. Thus for a new person scanning over the README, it would be nice to get a gloss of how that would work.
| api.addSubscription('addedPlanets', new appsync.ResolvableField({ | ||
| returnType: planet.attribute(), | ||
| args: { id: ScalarType.required_id }, | ||
| directives: [appsync.Directive.subscribe('addPlanet')], | ||
| })); |
There was a problem hiding this comment.
are there any additional changes to the verification steps because of this?
There was a problem hiding this comment.
unless we want to build out an entire app to check if subscriptions work then no..
There was a problem hiding this comment.
actually nvm here is a solution
and another link to testing in general
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: #10078 Fixes: #16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: aws#10078 Fixes: aws#16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: aws#10078 Fixes: aws#16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: aws#10078 Fixes: aws#16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: aws#10078 Fixes: aws#16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…neration (aws#10078) Implemented an `addSubscription` function for the `appsync.Schema` class to make easy schema generation. ```ts api.addSubscription('addedFilm', new appsync.ResolvableField({ returnType: film.attribute(), args: { id: appsync.GraphqlType.id({ isRequired: true }) }, directive: [appsync.Directive.subscribe('addFilm')], })); ``` Fixes: aws#9345 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Error in the documentation and type checking. Fixed both the readme and the related PR (integ test used a `Field` type so it still works as intended). Related PR: aws#10078 Fixes: aws#16071 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Implemented an
addSubscriptionfunction for theappsync.Schemaclass to make easy schema generation.Fixes: #9345
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license