adamibaker
04/08/2017, 7:13 AMcreateUser) and then accessing the newly created User object in my react-native and apollo + auth0 + graphcool app.
this page (https://www.graph.cool/docs/reference/simple-api/user-authentication-eixu9osueb/#auth0-social-logins) says that like all mutations, createUser returns the newly created object.
i'm using a mutation much like this:
mutation {
createUser(authProvider: {
auth0: {
idToken: "<idToken>"
}
}) {
id
}
}
i want the new object to be at this.props.data.user — that's the name of my usual query for logged-in users.
for this new user case, it is returned in this.props.data.createUser which i understand is the name of the mutation. how do I createUser and then query/return the new user object as i ordinarily would (so that it is returned in this.props.user)?nilan
04/08/2017, 2:21 PM