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 🙌
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 🙌
Ah! Understood that EventBridge doesn't allow for stringifying so that we can use
AWSJSON
but whatI 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.