ckelley
01/31/2018, 5:22 AMconst updateUser = await ctx.db.mutation.updateUser(
{
where: { id: user.id },
data: {
password: hash,
resetToken: null,
resetExpiry: null
},
}
)
When I run this mutation, nothing happens to resetToken
and resetExpiry
in the db (their values don't get set to null
).
They're not required in my data model, either:
#
verifyToken: String @unique
resetToken: String @unique
resetExpiry: DateTime
Anyone else experiencing this issue?
I'm on prisma@1.1.2max
01/31/2018, 9:01 AMckelley
01/31/2018, 2:48 PMckelley
01/31/2018, 5:34 PMckelley
01/31/2018, 5:34 PMnilan
01/31/2018, 5:35 PMckelley
01/31/2018, 5:35 PMckelley
01/31/2018, 5:39 PMmutation ($_data: UserUpdateInput!, $_where: UserWhereUniqueInput!) {
updateUser(data: $_data, where: $_where) {
id
# ...
verifyToken
resetToken
resetExpiry
# ...
}
}
ckelley
01/31/2018, 5:40 PM{
"_data": {
"emailVerified": true,
"verifyToken": null
},
"_where": {
"id": "cjd0vvumo01e10108958vtxoh"
}
}
ckelley
01/31/2018, 5:40 PMResponse from <http://192.168.99.100:4466/prisma-test/dev>:
{
"updateUser": {
(snip)
"id": "cjd0vvumo01e10108958vtxoh",
"verifyToken": "9f5abda51816526227cce41c692c86856e460091",
(snip)
}
}
nilan
01/31/2018, 5:40 PMckelley
01/31/2018, 5:41 PMckelley
01/31/2018, 5:41 PMnilan
01/31/2018, 5:41 PMckelley
01/31/2018, 5:41 PMconst updateUser = await ctx.db.mutation.updateUser(
{
where: { id: user.id },
data: {
emailVerified: true,
verifyToken: null,
},
}
)
verifyToken: String @unique
nilan
01/31/2018, 5:41 PMckelley
01/31/2018, 5:43 PMnilan
01/31/2018, 5:44 PMprisma-binding
? ctx.db.query
is running prisma-binding
ckelley
01/31/2018, 5:44 PMnilan
01/31/2018, 5:44 PMprisma-binding
in the context of your GraphQL Server, for example GraphQL Yoganilan
01/31/2018, 5:44 PMckelley
01/31/2018, 5:49 PMnilan
01/31/2018, 5:49 PM