I'm trying to match some input object types generated by Nexus with those that are generated by Prisma (it makes it convenient to just pass on the args to prisma client). However there is a problem. How do I generate a equivalent nexus type for the following prisma type?
Compare it with the one from prisma, every optional field has a | null attached to it. The only way to get rid of it is to make it required but that is not true, the arg must be optional but not null
How do I generate a type that is just contains?: string and not contains?: string | null?
I'm trying to match some input object types generated by Nexus with those that are generated by Prisma (it makes it convenient to just pass on the args to prisma client). However there is a problem. How do I generate a equivalent nexus type for the following prisma type?
here's what I tried
but this generates a type as follows
Compare it with the one from prisma, every optional field has a
| null
attached to it. The only way to get rid of it is to make it required but that is not true, the arg must be optional but not nullHow do I generate a type that is just
contains?: string
and notcontains?: string | null
?