fabien0102
12/15/2017, 4:35 PMjohnvalustik
12/15/2017, 4:50 PMSteven Sacks
12/15/2017, 6:16 PMSteven Sacks
12/15/2017, 6:17 PMorefalo
12/15/2017, 7:52 PMorefalo
12/15/2017, 7:52 PMRaj
12/15/2017, 8:21 PMjferrettiboke
12/15/2017, 8:23 PMbeforeAll()
before all the tests run.
Is there any way to reset the database or do I have to do it manually (writing mutations for each type)?
Thanks.ehodges
12/15/2017, 9:33 PMparris
12/15/2017, 10:14 PMsteve
12/15/2017, 10:42 PMJosh Willis
12/15/2017, 11:18 PMradicand
12/16/2017, 12:54 AMAndrew Schreiber
12/16/2017, 2:07 AMMahmoud MH
12/16/2017, 4:53 AMuser
12/16/2017, 5:03 AMhttps://prisma.slack.com/files/U7PGDP70V/F8FKMS9R8/q.pngโพ
Maslov
12/16/2017, 6:20 AMMaslov
12/16/2017, 6:20 AMtopaz
12/16/2017, 8:16 AMtopaz
12/16/2017, 8:16 AMuser
12/16/2017, 10:17 AMhttps://prisma.slack.com/files/U89TDE4KY/F8GGUT6QN/screen_shot_2017-12-16_at_7.15.42_pm.pngโพ
basanth
12/16/2017, 10:33 AMwooyol
12/16/2017, 1:22 PMtimnovis
12/16/2017, 1:52 PMGraphQL error: Cannot query field 'token' on type 'User'.
. My mutation is this:
mutation SignupUserMutation(
$email: String!
$password: String!
$username: String
) {
createUser(authProvider: {
email: {
email: $email,
password: $password,
},
}, username: $username) {
id
token
}
}
chakrihacker
12/16/2017, 2:03 PMrajit
12/16/2017, 3:17 PMsignupUser
resolver could do what it does, but have verified: false
in the User
entry. authenticateUser
could check for verified: true
and there could be a new verifyUser
resolver. A subscription could watch unverified users getting created and send an e-mail with a generated token which is then verified by verifyUser
.
That's my idea but I'm wondering if anyone can make any other recommendations or offer some working examples. Cheers!radicand
12/16/2017, 3:27 PMrajit
12/16/2017, 3:32 PMuser_id
, I think if you use a relation then it'll be verified for youradicand
12/16/2017, 3:33 PMrajit
12/16/2017, 3:33 PM"message": "You are referencing a node that does not exist. Please check your mutation to make sure you are only creating edges between existing nodes. Id if available: "