model User {
id Int @default(autoincrement()) @id
email String @unique
name String?
json Json?
}
const user = await client.user.create({
data: {
email: '[email protected]',
json: {
hello: 'world',
},
name: 'Bob',
},
})
Error parsing GraphQL query: query parse error: Parse error at 5:7
Unexpected `"hello"[StringValue]`
Expected `Name`, `:` or `}`
this issue has fixed?
@aguilera51284 Yes, you can try out the fix in the alpha release npm install @prisma/cli@alpha @prisma/client@alpha && npx @prisma/cli@alpha generate
Most helpful comment
@aguilera51284 Yes, you can try out the fix in the alpha release
npm install @prisma/cli@alpha @prisma/client@alpha && npx @prisma/cli@alpha generate