DEV Community

Discussion on: Lessons learned: AWS AppSync Subscriptions

Collapse
 
dmitryame profile image
Dmitry Amelchenko

Filip, do you do anything special in your CDK stack file to enable graphQL subscription annotations? I'm kind of stuck, probably something stupid, but for me, the subscription never fires.
stackoverflow.com/questions/702773...

Collapse
 
filippyrek profile image
Filip Pýrek

Hi Dmitry, I don't use CDK for this so I can't tell you. But since the schema is being given to CloudFormation in a raw form [1] it should work out of the box. But maybe the CDK construct has some special (broken) inner mechanism for schema validation or something like that.


[1] docs.aws.amazon.com/AWSCloudFormat...