diff options
Diffstat (limited to 'api/graphql/schema/directives.graphql')
-rw-r--r-- | api/graphql/schema/directives.graphql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/graphql/schema/directives.graphql b/api/graphql/schema/directives.graphql new file mode 100644 index 00000000..79c881d6 --- /dev/null +++ b/api/graphql/schema/directives.graphql @@ -0,0 +1,18 @@ +# Below are directives defined by gqlgen, see https://gqlgen.com/config/ + +directive @goModel( + model: String + models: [String!] + forceGenerate: Boolean +) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION + +directive @goField( + forceResolver: Boolean + name: String + omittable: Boolean +) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION + +directive @goTag( + key: String! + value: String +) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION |