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 should be able to run a graphql mutation to create a single post with only userId, title and description. However the types nexus is generating makes it as such that author field is mandatory in the query.
I am using prisma and nexus with the following prisma schema:
and I have created nexus models and mutation as such:
I should be able to run a graphql mutation to create a single post with only
userId
,title
anddescription
. However the types nexus is generating makes it as such thatauthor
field is mandatory in the query.following is generated by nexus:
note 1: I have noticed the following type generated by nexus but it's not being used anywhere:
note 2: I've only added relevant code from my source
Could someone please help me figure out what can I do here?
libraries used:
"nexus-plugin-prisma": "^0.35.0"
"prisma": "^2.23.0"
"@prisma/client": "^2.23.0"
"nexus": "^1.0.0"
The text was updated successfully, but these errors were encountered: