prisma-binding
prisma-binding copied to clipboard
ctx.db.request returning null when the first response attribute is null
ctx.db.request(query, {identifier}).then(data => console.log(data));
prints the following to the console
Request to https://[REDACTED]:4466/lsalpha/dev:
query:
query getUser($identifier: String!) {
user(where: {slug: $identifier}) {
...selection
}
email(where: {address: $identifier}) {
user {
...selection
}
}
}
fragment passThrough on User {
name
email {
address
}
}
fragment selection on User {
id
password
email {
isVerified
}
...passThrough
}
operationName: getUser
variables:
{
"identifier": "[REDACTED]"
}
Response from https://[REDACTED]:4466/[REDACTED]/dev:
{
"user": null,
"email": {
"user": {
"id": "cjkkzloq300zb0818r2s2lkk2",
"password": "[REDACTED]",
"email": {
"isVerified": false,
"address": "[REDACTED]"
},
"name": "[REDACTED]"
}
}
}
null
Is this the intended functionality, and if so, how would I get access to the email argument returned by the query?