简体   繁体   中英

Nexus GraphQL Prisma events field

For Nexus, I have a JSON field defined in a prisma model ( events Json ) and I want to make a graphql mutation to create an instance of that model. However, I do not know what to provide in the events field:

args: {
  events: ????,
},

Something like this should work:

args: {
  events: arg({ type: 'Json' })
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM