PrismaP
Prisma14mo ago
5 replies
Rhys

fullText contradicting errors

PrismaClientKnownRequestError: 
Invalid `prisma.user.findMany()` invocation:
Cannot find a fulltext index to use for the native search, try adding a @@fulltext([Fields...]) to your schema

Then I add the @@fullText part to my schema and I get
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: Attribute not known: "@fullText".
  -->  prisma\schema.prisma:88
   | 
87 |   @@index([siteId])
88 |   @@fullText([name, firstName, lastName])
Was this page helpful?