You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
I have the emitIdAsIDType option enabled, but when I have a schema like the following, the generated <Schema>WhereInput type types id as StringFilter rather than treating it as ID.
schema User {
id String @id @default(uuid())
}
The same happens for WhereUniqueInput
This means I have to pass ids as String from my GraphQL queries.
To Reproduce
Generate the schema I provided above.
Expected Behavior
The filter should allow me to send ID types, not String.
Environment (please complete the following information):
OS: macOS 14.5
Node 20.11.1
typegraphql-prisma version 0.27.2
Prisma version 5.18
TypeScript version 5.5.3
Additional Context
The text was updated successfully, but these errors were encountered:
Describe the Bug
I have the
emitIdAsIDType
option enabled, but when I have a schema like the following, the generated<Schema>WhereInput
type typesid
asStringFilter
rather than treating it as ID.The same happens for WhereUniqueInput
This means I have to pass ids as
String
from my GraphQL queries.To Reproduce
Generate the schema I provided above.
Expected Behavior
The filter should allow me to send ID types, not String.
Environment (please complete the following information):
typegraphql-prisma
version 0.27.2Additional Context
The text was updated successfully, but these errors were encountered: