ChinCluBi
06/08/2018, 1:55 PM{
"data": {
"updateOrder": null
},
"errors": [
{
"locations": [],
"message": "There can be only one input field named 'boolean'.",
"path": [
"updateOrder"
]
}
]
}
i’m try to run this mutation
mutation {
updateOrder(
where: {
id: "cjdg5pgbcl17b0134orwjp082"
}
data: {
status: DONE
}
) {
id
status
}
}
nilan
06/08/2018, 1:59 PMupdated_fields
in a subscription: https://github.com/prismagraphql/prisma/issues/2333nilan
06/08/2018, 1:59 PMChinCluBi
06/08/2018, 2:07 PMprisma.yml
here is my prisma.yml
# endpoint: <http://localhost:4466/prisma/${env:PRISMA_STAGE}>
endpoint: ${env:PRISMA_ENDPOINT}
datamodel:
- prisma/datamodel.graphql
- prisma/enums.graphql
hooks:
post-deploy:
- graphql get-schema --project database
- graphql prepare
- cp ../core/src/generated/prisma.graphql ../microserver/generated/prisma.graphql
# subscriptions:
# orderStatusChanged:
# webhook: https://....
# query: core/src/subscriptions/orderStatusChanged.graphql
# secret: ${env:PRISMA_SECRET}
ChinCluBi
06/08/2018, 2:20 PMupdated_fields
in orderStatusChanged.graphql
. i thought, it should disable if it was removed from prisma.yml
. thx @nilannilan
06/08/2018, 2:21 PMChinCluBi
06/08/2018, 2:22 PMnilan
06/08/2018, 2:22 PMChinCluBi
06/08/2018, 2:23 PMChinCluBi
06/08/2018, 2:24 PMnilan
06/08/2018, 2:25 PM