[BUG] Input Object type UserOKRsUpdateManyMutationInput
must define one or more fields
#198
Labels
duplicate
This issue or pull request already exists
Describe the Bug
When I create a new model name
UserOKRs
, it's relation include one-to-many and many-to-one relation to another model.Then run apollo server, error occurred while generating GraphQL schema.
It seems that schema builder not work as we expect:
And the error is :
I check the file in
UserUpdateManyMutationInput.ts
file, and found it is empty export classTo Reproduce
here is my schema, when I add the new model
UserOKRs
, then runyarn run dev
start a apollo server.the error comes out:
A quick guide how to reproduce the bug.
You can paste here code snippets or even better, provide a link to the repository with minimal reproducible code example.
Expected Behavior
A clear and concise description of what you expected to happen.
Logs
If applicable, add some console logs to help explain your problem.
You can paste the errors with stack trace that were printed when the error occurred.
Environment (please complete the following information):
typegraphql-prisma
version 0.14.5Additional Context
Here is my repo link: https://github.com/jff-studio/jff-okr-backend
The text was updated successfully, but these errors were encountered: