So im trying to use the example documented here <h...
# orm-help
d
So im trying to use the example documented here https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields
const getUsers = await prisma.user.findMany({
where: {
extendedPetsData: {
path: ['petName'],
equals: 'Claudine',
},
},
})
But i always get the error : '\nInvalid
prisma.md_devices.findMany()
invocation:\n\n{\n take: 1000,\n skip: 0,\n where: {\n tags: {\n path: [\n ~~~~\n 'imei'\n ],\n equals: '352739096253221'\n }\n },\n select: undefined,\n orderBy: undefined\n}\n\nUnknown arg
path
in where.tags.path for type JsonNullableFilter. Did you mean
not
? Available args:\ntype JsonNullableFilter {\n equals?: JsonNullValueFilter | Json\n not?: JsonNullValueFilter | Json\n}\n\n'
r
@David Sooter 👋 You need to add the
filterJson
preview feature as shown here and then run
prisma generate
🙂
d
your a lifesaver thanks a lot. Guess i missed that
🙌 1