Skip to content

A server-side directive that bindes the graphql model to a go model: https://gqlgen.com/config/

graphql
directive @goModel(
  model: String
  models: [String!]
) on 
  | OBJECT
  | INPUT_OBJECT
  | SCALAR
  | ENUM
  | INTERFACE
  | UNION

Arguments ​

goModel.model ● String scalar ​

goModel.models ● [String!] list scalar ​