thecrazyhoodie
01/23/2019, 6:07 PMts
const macroExists = await this.client.prisma.$exists.macro({ key });
graphql
type Macro {
key: String! @unique
value: String!
author: String!
}
Error
(node:381) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined
or null to object
at Function.keys (<anonymous>)
at Client.extractPayload (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:246:24)
at Client.<anonymous> (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:115:52)
at step (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:47:23)
at Object.next (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:28:53)
at fulfilled (/mnt/d/thecrazyhoodiebot/node_modules/prisma-client-lib/dist/Client.js:19:58)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
(node:381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)divyendu
01/23/2019, 6:15 PM