Commit e4cc885 1 parent 6525acb commit e4cc885 Copy full SHA for e4cc885
File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ # @generated fields are constructed in Go, and do not come from the GraphQL endpoint.
1
2
directive @generated on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
3
+
4
+ # @internal is not exposed in expr scope, and is only available within Go code
5
+ # this is often used when needing to grab data from GraphQL, but not wanting to expose
6
+ # it directly (e.g. due to nesting)
2
7
directive @internal on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
8
+
9
+ # @expr changes the name of the field when its exposed to expr scope.
10
+ # When omitted (and @internal is not used) we automatically convert the field
11
+ # from "CamelCaseName" to "snake_case_name" in code generation step
3
12
directive @expr (key : String ! ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
13
+
14
+ # @graph changes the name (and query) of the field when sending it to the GraphQL server.
15
+ # This case be used to impose limits in "connections" or providing filtering keys.
4
16
directive @graphql (key : String ! ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
5
17
18
+ # Add time.Time support
6
19
scalar Time
20
+
21
+ # Add time.Duration support
7
22
scalar Duration
8
23
9
24
type Context {
You can’t perform that action at this time.
0 commit comments