paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
683 stars 54 forks source link

Unchecked Scalar Input #170

Open strazi opened 3 years ago

strazi commented 3 years ago

It looks like the GraphQL SDL inputs plugin selects the unchecked scalars version of the input arguments automatically, would it be possible to have an option to select the "normal" version? For example:

mutation {
  updateItem(
    foreignKeyId: STRING
  )
}

vs.

mutation {
  updateItem(
    foreignKey: {
      connect: {
        id: STRING
      }
    }
  )
}

Alternatively maybe the inputs could be generated into individual files like the resolvers are. Thanks!