You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds the @OneOf directive as a default directive to indicate
Objects and Input Objects as OneOf Objects/Input Objects which ensure
there is exactly one non-null entry. Future commits will work to
implement this directive.
Copy file name to clipboardExpand all lines: src/utilities/__tests__/printSchema-test.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -656,6 +656,11 @@ describe('Type System Printer', () => {
656
656
url: String!
657
657
) on SCALAR
658
658
659
+
"""
660
+
Indicates an Object is a OneOf Object or an Input Object is a OneOf Input Object.
661
+
"""
662
+
directive @oneOf on OBJECT | INPUT_OBJECT
663
+
659
664
"""
660
665
A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.
0 commit comments