github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/example/config/.gqlgen.yml (about)

     1  # .gqlgen.yml example
     2  #
     3  # Refer to https://gqlgen.com/config/
     4  # for detailed .gqlgen.yml documentation.
     5  
     6  schema: "*.graphql"
     7  exec:
     8    filename: generated.go
     9  model:
    10    filename: models_gen.go
    11  resolver:
    12    type: Resolver
    13    layout: follow-schema
    14    dir: .
    15  
    16  models:
    17    Todo:    # Object
    18      fields:
    19        text:
    20          fieldName: Description # Field
    21    NewTodo: # Input
    22      fields:
    23        userId:
    24          fieldName: UserID      # Field