Daniel Martin
07/17/2018, 10:21 AMjsan
07/17/2018, 1:26 PMpatrick_madx
07/17/2018, 2:44 PM[Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
It's a local docker image, so we don't want the Prisma could integrationsiyfion
07/17/2018, 4:31 PMsortiz
07/17/2018, 4:33 PMsortiz
07/17/2018, 4:33 PMHaider Malik
07/17/2018, 4:38 PM{
"error": "Unexpected token < in JSON at position 0"
}
Haider Malik
07/17/2018, 4:38 PMjameshenry
07/17/2018, 9:04 PMjameshenry
07/17/2018, 9:04 PMjameshenry
07/17/2018, 9:05 PMjameshenry
07/17/2018, 9:05 PMjameshenry
07/17/2018, 9:05 PMjameshenry
07/17/2018, 9:06 PMjameshenry
07/17/2018, 9:07 PMTatsuyuki Ishi
07/18/2018, 3:40 AMchameleon
07/18/2018, 4:34 AMLoic
07/18/2018, 6:41 AMuniqueId
in my data model but I’d like it to be id
in my schema. I feel like the solution is easy but I can’t crack it! Thanks!James Bradly
07/18/2018, 7:37 AMHaider Malik
07/18/2018, 7:48 AMschema.graphql
type User {
id: ID! @unique
email: String!
password: String!
role: Role @default(value: "CANDIDATE")
}
prisma.graphql
type Query{
user(where: UserWhereUniqueInput!): User
}
input UserWhereUniqueInput {
id: ID
}
I want to find the user on the based on email. Prisma did not add the email field in the UserWhereUniqueInput
type
async function login(root, { email, password }, ctx, info) {
const user = await ctx.db.query.user({ where: { email: email } }, ` { id password } `)
....
}
I received this error message from Prisma Playground
{
"data": null,
"errors": [
{
"message": "Variable \"$_v0_where\" got invalid value {\"email\":\"<mailto:Jane2@email.com|Jane2@email.com>\"}; Field \"email\" is not defined by type UserWhereUniqueInput.",
"locations": [],
"path": []
}
]
}
can anyone help me?Corjen
07/18/2018, 9:19 AMuser
07/18/2018, 10:31 AMuser
07/18/2018, 11:56 AMuser
07/18/2018, 11:59 AMCorjen
07/18/2018, 11:59 AMuser
07/18/2018, 12:08 PMaroman
07/18/2018, 3:23 PMgateway
is hitting another `graphql-server`(microservice). In turn that graphql-server
does another mutation to the database.
I am hitting from my gateway:
createReport(input: ReportInput!): JSON!
input ReportInput {
queryLimit: Int!
businessEntityId: Int!
}
This works fine:
The graphql Server I’m hitting triggers this mutation:
createReport(input: JasperInput!): Report
My issue is when using playground: I get this back:
{
"data": null,
"errors": [
{
"message": "Cannot return null for non-nullable field Mutation.createReport.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createReport"
]
}
]
}
aroman
07/18/2018, 3:23 PMMohamed Khalil
07/18/2018, 4:14 PMFitch
07/18/2018, 4:28 PM