Joseph Carrington
01/24/2019, 6:20 PMtype PortalUser {
portalId: String! @unique
createdAt: DateTime!
updatedAt: DateTime!
cart: PortalCart @relation(name: "UserCart", onDelete: CASCADE)
OTTAuthorizations: [OTTAuthorization!]!
@relation(name: "UserOTTAuthorizations", onDelete: CASCADE)
isGuest: Boolean! @default(value: "true")
dummy: String! @default(value: "Dummy")
}
And I try to see if a PortaUser exists using this:
const userExists = await prisma.portalUser({ portalId: viewer.id })
I get this:
"Error: Cannot convert undefined or null to object",
Is this expected behavior, and if so, what am I doing wrong?divyendu
01/24/2019, 6:20 PMdivyendu
01/24/2019, 6:21 PM1.25.3, please install it via npm install -g prisma and npm install --save prisma-client-libJoseph Carrington
01/24/2019, 6:23 PM