Skip to content

Commit 64ae05f

Browse files
committed
Fix schema
1 parent 7573172 commit 64ae05f

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

src/utilities/__tests__/printSchema-test.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ describe('Type System Printer', () => {
782782
name: String!
783783
description: String
784784
args(includeDeprecated: Boolean = false): [__InputValue!]!
785-
type(nullability: __TypeNullability!): __Type!
785+
type(nullability: __TypeNullability! = AUTO): __Type!
786786
isDeprecated: Boolean!
787787
deprecationReason: String
788788
}
@@ -803,6 +803,23 @@ describe('Type System Printer', () => {
803803
deprecationReason: String
804804
}
805805
806+
"""TODO"""
807+
enum __TypeNullability {
808+
"""Determines nullability mode based on errorPropagation mode."""
809+
AUTO
810+
811+
"""Turn semantic-non-null types into nullable types."""
812+
TRADITIONAL
813+
814+
"""Turn non-null types into semantic-non-null types."""
815+
SEMANTIC
816+
817+
"""
818+
Render the true nullability in the schema; be prepared for new types of nullability in future!
819+
"""
820+
FULL
821+
}
822+
806823
"""
807824
One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.
808825
"""
@@ -887,13 +904,6 @@ describe('Type System Printer', () => {
887904
"""Location adjacent to an input object field definition."""
888905
INPUT_FIELD_DEFINITION
889906
}
890-
891-
enum __TypeNullability {
892-
AUTO
893-
TRADITIONAL
894-
SEMANTIC
895-
FULL
896-
}
897907
`);
898908
});
899909
});

0 commit comments

Comments
 (0)