Hey there, I am not sure why I am receiving this e...
# orm-help
t
Hey there, I am not sure why I am receiving this error.
Copy code
ts
const macroExists = await this.client.prisma.$exists.macro({ key });
Copy code
graphql
type Macro {
  key: String! @unique
  value: String!
  author: String!
}
Error
Copy code
(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)
d
This issue is being tracked here: https://github.com/prisma/prisma/issues/3907 A fix has been made and would be available soon.