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
Copy file name to clipboardExpand all lines: src/utilities/__tests__/printSchema-test.js
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -627,6 +627,17 @@ describe('Type System Printer', () => {
627
627
if: Boolean!
628
628
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
629
629
630
+
"""
631
+
Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
632
+
"""
633
+
directive @defer(
634
+
"""Deferred when true or undefined."""
635
+
if: Boolean
636
+
637
+
"""Unique name"""
638
+
label: String
639
+
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
640
+
630
641
"""Marks an element of a GraphQL schema as no longer supported."""
631
642
directive @deprecated(
632
643
"""
@@ -852,6 +863,15 @@ describe('Type System Printer', () => {
852
863
if: Boolean!
853
864
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
854
865
866
+
# Directs the executor to defer this fragment when the \`if\` argument is true or undefined.
867
+
directive @defer(
868
+
# Deferred when true or undefined.
869
+
if: Boolean
870
+
871
+
# Unique name
872
+
label: String
873
+
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
874
+
855
875
# Marks an element of a GraphQL schema as no longer supported.
856
876
directive @deprecated(
857
877
# Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).
0 commit comments