Open olustrrax opened 3 years ago
Is String[]
even valid Prisma? I'm getting an error while trying to use it, can't find much through a quick Google search for this error.
Field "code" in model "Order" can't be a list. The current connector does not support lists of primitive types.
@jamiepine Maybe it's because of Prisma version? I think String[]
will be work (this's my ref Working with scalar lists)
Or I miss something 😅
Scalar lists is supported by PostgreSQL only. MySQL has no support for it. So you need a table for that as explained in the schema incompatibilities doc: https://www.prisma.io/docs/guides/upgrade-guides/upgrade-from-prisma-1/schema-incompatibilities-postgres#scalar-lists-arrays-are-maintained-with-extra-table
any chance of getting this implemented? lists of primitive types very much work on the postgres connector
We also have this issue and it is forcing us to give up using the library. Any chance of a fix?
I'm having this problem.. any news?
I found something that prismix not generate with the right datatype
base.prisma
order.prisma
schema.prisma
After prismix generate schema.prisma the field name
code
has String NOT String[]What's wrong? How can I fix it?