File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,14 @@ withNexusSymbol(NexusNonNullDef, NexusTypes.NonNull)
22
22
*
23
23
* Modify a type to be Non-Null.
24
24
*
25
- * In Nexus input postition types are non-null by default so this has no use for them (until you've changed
26
- * the default). On the other hand output postition types are nullable by default so use this to modify them
27
- * (until you've changed the default).
25
+ * In Nexus input and output position types are nullable by default so use this to modify them so long as
26
+ * you've not changed the non-null defaults for one or both positions.
28
27
*
29
28
* If you find yourself using this a large majority of the time then consider changing your nullability defaults.
30
29
*
31
30
* @example
32
31
* objectType({
33
32
* name: 'User',
34
- * nonNullDefaults: {
35
- * inputs: false,
36
- * },
37
33
* definition(t) {
38
34
* t.field('id', {
39
35
* type: nonNull('ID'),
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ withNexusSymbol(NexusNullDef, NexusTypes.Null)
22
22
*
23
23
* Remove the Non-Null wrapper from a type, if present.
24
24
*
25
- * In Nexus input postition types are non-null by default so this is useful to modify them (until you've
26
- * changed the default). On the other hand output postition types are nullable by default so this has no use
27
- * for them (until you've changed the default).
25
+ * In Nexus input and output position types are nullable by default so this has ***no use*** until you've
26
+ * changed the non-null defaults for one or both positions.
28
27
*
29
28
* If you find yourself using this a large majority of the time then consider changing your nullability defaults.
30
29
*
31
30
* @example
32
31
* objectType({
33
32
* name: 'User',
34
33
* nonNullDefaults: {
34
+ * inputs: true,
35
35
* outputs: true,
36
36
* },
37
37
* definition(t) {
You can’t perform that action at this time.
0 commit comments