awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
921 stars 266 forks source link

React Apollo Query, Mutation, and Subscription Components #258

Open Jayphen opened 6 years ago

Jayphen commented 6 years ago

It would be great if the docs could be updated with examples on how to use the Query, Subscription & Mutation components that were introduced back in Apollo 2.1 and are now recommended by Apollo documentation (https://www.apollographql.com/docs/react/essentials/queries.html#basic)

I'm particularly interested in knowing if/how the graphqlMutation and buildSubscription helpers can be used with these Apollo components.

alexfedin commented 6 years ago

+1

Austint30 commented 6 years ago

This would be very helpful. There also may be a bug where the Mutation component fails to receive any data from the server as per my issue.

elorzafe commented 6 years ago

Hi @Jayphen thanks for your feedback. I will add this into our backlog

anarerdene commented 5 years ago

@Jayphen did u find solution.

evelant commented 5 years ago

@elorzafe @Jayphen I'm curious about this as well. As a newbie to appsync, graphql, and apollo I'm having a hard time figuring out what patterns I should be using such as Query component vs graphql HOC and how those interact with the amplify generated queries.