DEV Community

Discussion on: How to Observe EventBridge Events with AppSync Subscriptions

Collapse
 
bboure profile image
Benoît Bouré

Thanks @zachjonesnoel
Sorry, I am not sure what you meant by that.

As I explained in the article, an issue with that is that, because the content of the event can be arbitrary, it cannot match any GraphQL Type for it.
Using AWSJSON requires stringifying the payload, which is not supported by EventBridge transformations.

If you have an idea, I'd be happy to hear about it 🙌

Collapse
 
zachjonesnoel profile image
Jones Zachariah Noel

Ah! Understood that EventBridge doesn't allow for stringifying so that we can use AWSJSON but what

I was intending to say is like if we have to perform a query/mutation from Lambda we can invoke it as API with request or axios (with NodeJS run-time) similarly as an API destination we could do a AppSync mutation invocation also. Let me see if I can successfully try it what I'm thinking! 😅 And will get back to you about it.