user
04/07/2017, 10:32 AMhttps://prisma.slack.com/files/U2Z3AS60H/F4W1DHSLA/screen_shot_2017-04-07_at_12.22.12.png▾
afgh
04/07/2017, 10:47 AMartyom
04/07/2017, 12:32 PMstlbucket
04/07/2017, 12:39 PMafasorojoseph
04/07/2017, 12:50 PMsorenbs
amann
04/07/2017, 1:35 PMyoamomonstruos
04/07/2017, 2:00 PMinterface NodeBase {
id: ID!
title: String!
}
type Note implements NodeBase {
id: ID!
title: String!
body: String!
}
type Link implements NodeBase {
id: ID!
title: String!
url: String!
}
type Project {
id: ID!
things: [NodeBase]!
}
artyom
04/07/2017, 3:00 PMrphuber
04/07/2017, 3:00 PMjaminpie
04/07/2017, 3:27 PMjaminpie
04/07/2017, 3:27 PMtim2
04/07/2017, 3:29 PMartyom
04/07/2017, 3:32 PMartyom
04/07/2017, 3:38 PMdmitweb
04/07/2017, 3:39 PMgopidon
04/07/2017, 3:54 PMmonkeybonkey
04/07/2017, 5:03 PMaryan
04/07/2017, 5:29 PMartyom
04/07/2017, 6:22 PMdavidc
04/07/2017, 6:42 PMragnorc
04/07/2017, 8:10 PMhvillain
04/07/2017, 8:33 PMadamibaker
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
)?adamibaker
04/08/2017, 7:17 AMherdani
04/08/2017, 8:12 AMloelsonk
04/08/2017, 9:14 AMauth0.WebAuth.client.login
. Token I am receiving is not valid with Graphcool. It's 735 char long compared to 285 char long from auth0.WebAuth.redirect.loginWithCredentials
function which works for me and I can successfuly authenticate to my App. I'd like to use a method which is not forcing my window to reload ( auth0.WebAuth.redirect.loginWithCredentials
does that for me).herdani
04/08/2017, 10:57 AMartyom
04/08/2017, 1:17 PMartyom
04/08/2017, 1:35 PM