Open chrishoermann opened 3 years ago
I have similar question, but not quite. I am fine being able to access them through a string, my only issue is that there aren't enough field types available.
For example, only the ModelWhereUniqueInput
is generated, but not ModelWhereInput
, which would allow me to implement a custom "where" field without the need to create a custom Input and miss out on the advanced filtering.
I think at least all aggregate fields (from ModelAggregateArgs
) should be generated.
Any Update on this issue?
kind of similar to graphql-nexus/nexus#69 but there where some major changes since then so I don't know if commenting on this issue makes sense.
My question: Is it possible to use a type from the
Prisma
namespace as argument type like:the error states that
Property 'CompanyCreateInput' does not exist on type 'typeof Prisma'
but the typeCompanyCreateInput
is definitely exported in theindex.d.ts
of.prisma/client
.