---
url: https://api-doc.aive.com/api/types/directives/go-model.md
---

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](#model) ● [String](/api/types/scalars/string) scalar {#model}

#### [goModel.models](#models) ● [\[String!\]](/api/types/scalars/string) list scalar {#models}
