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
I have a simple app with the following Prisma schema:
model TodoViewTodo {
id Int @id @default(autoincrement())
todo Int
todoView Int
placeholder String?
Todo Todo @relation(fields: [todo], references: [id])
TodoView TodoView @relation(fields: [todoView], references: [id])
}
model Todo {
id Int @id @default(autoincrement())
text String
done Boolean?
user Int
User User @relation(fields: [user], references: [id])
TodoViewTodo TodoViewTodo[]
}
model TodoView {
id Int @id @default(autoincrement())
label String
order String?
color String
TodoViewTodo TodoViewTodo[]
}
When I generate a schema using typegraphql-prisma resolvers and buildSchema I get an empty input:
input TodoViewTodoUpdateManyMutationInput
which causes all GraphQL operations to fail due to an invalid schema.
I had to add the placeholder field for this input not to be empty, which is not ideal.
The text was updated successfully, but these errors were encountered:
I have a simple app with the following Prisma schema:
When I generate a schema using
typegraphql-prisma
resolvers andbuildSchema
I get an empty input:which causes all GraphQL operations to fail due to an invalid schema.
I had to add the
placeholder
field for this input not to be empty, which is not ideal.The text was updated successfully, but these errors were encountered: