Skip to content

Commit 66204c5

Browse files
committed
feat(graphql): adds @default directive to graphql (#8017)
1 parent fd6c0be commit 66204c5

File tree

68 files changed

+2231
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2231
-7
lines changed

graphql/e2e/schema/apollo_service_response.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ input CustomHTTP {
117117
skipIntrospection: Boolean
118118
}
119119

120+
input DgraphDefault {
121+
value: String
122+
}
123+
120124
type Point {
121125
longitude: Float!
122126
latitude: Float!
@@ -199,6 +203,7 @@ directive @hasInverse(field: String!) on FIELD_DEFINITION
199203
directive @search(by: [DgraphIndex!]) on FIELD_DEFINITION
200204
directive @dgraph(type: String, pred: String) on OBJECT | INTERFACE | FIELD_DEFINITION
201205
directive @id(interface: Boolean) on FIELD_DEFINITION
206+
directive @default(add: DgraphDefault, update: DgraphDefault) on FIELD_DEFINITION
202207
directive @withSubscription on OBJECT | INTERFACE | FIELD_DEFINITION
203208
directive @secret(field: String!, pred: String) on OBJECT | INTERFACE
204209
directive @remote on OBJECT | INTERFACE | UNION | INPUT_OBJECT | ENUM

graphql/e2e/schema/generatedSchema.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ input CustomHTTP {
9898
skipIntrospection: Boolean
9999
}
100100

101+
input DgraphDefault {
102+
value: String
103+
}
104+
101105
type Point {
102106
longitude: Float!
103107
latitude: Float!
@@ -180,6 +184,7 @@ directive @hasInverse(field: String!) on FIELD_DEFINITION
180184
directive @search(by: [DgraphIndex!]) on FIELD_DEFINITION
181185
directive @dgraph(type: String, pred: String) on OBJECT | INTERFACE | FIELD_DEFINITION
182186
directive @id(interface: Boolean) on FIELD_DEFINITION
187+
directive @default(add: DgraphDefault, update: DgraphDefault) on FIELD_DEFINITION
183188
directive @withSubscription on OBJECT | INTERFACE | FIELD_DEFINITION
184189
directive @secret(field: String!, pred: String) on OBJECT | INTERFACE
185190
directive @auth(

0 commit comments

Comments
 (0)