prisma-nestjs-graphql icon indicating copy to clipboard operation
prisma-nestjs-graphql copied to clipboard

Support for fieldReference

Open jojoa opened this issue 2 years ago • 2 comments

Hi, support for the fieldReference Feature would be nice, currently failing due to the FieldRefInput Types in the Filters.

jojoa avatar Sep 28 '22 23:09 jojoa

What is fieldReference/FieldRefInput?

unlight avatar Sep 29 '22 17:09 unlight

https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#compare-columns-in-the-same-table it's a new feature of Prisma to compare in query. For that it generates a new fields attribute and unions the types in filters with the fieldRefInput Type that is the result of the fields attribute of the client. When you generate a Prisma client with and without the Feature enabled you can spot the difference in the emmited Prisma client.

jojoa avatar Sep 29 '22 21:09 jojoa