These article series are very impressive for me. I used your code, but I couldn't connect appsync on my version. Amplify uses zen-observable-ts at '3.0.8', then its subscription instance is not match Observable on @types/zen-observable
zen-observable-ts
@types/zen-observable
Found a workaround:
const call = await API.graphql(graphqlOperation(SubMinuteStockDocument, { ticker: 'MSFT' })); if ('subscribe' in call) { call.subscribe({ next: (e) => { console.log('Next', e); }, }); }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
These article series are very impressive for me.
I used your code, but I couldn't connect appsync on my version.
Amplify uses
zen-observable-ts
at '3.0.8', then its subscription instance is not match Observable on@types/zen-observable
Found a workaround: