Skip to content

Commit a49e236

Browse files
committed
void -> null
1 parent f902ba0 commit a49e236

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utilities/resolveSchemaCoordinate.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function resolveTypeCoordinate(
110110
const typeName = schemaCoordinate.name.value;
111111
const type = schema.getType(typeName);
112112

113-
// 3. If {type} does not exist, return {void}.
113+
// 3. If {type} does not exist, return {null}.
114114
if (!type) {
115115
return;
116116
}
@@ -145,7 +145,7 @@ function resolveMemberCoordinate(
145145
const enumValueName = schemaCoordinate.memberName.value;
146146
const enumValue = type.getValue(enumValueName);
147147

148-
// 7. If {enumValue} does not exist, return {void}.
148+
// 7. If {enumValue} does not exist, return {null}.
149149
if (enumValue == null) {
150150
return;
151151
}
@@ -161,7 +161,7 @@ function resolveMemberCoordinate(
161161
const inputFieldName = schemaCoordinate.memberName.value;
162162
const inputField = type.getFields()[inputFieldName];
163163

164-
// 12. If {inputField} does not exist, return {void}.
164+
// 12. If {inputField} does not exist, return {null}.
165165
if (inputField == null) {
166166
return;
167167
}
@@ -183,7 +183,7 @@ function resolveMemberCoordinate(
183183
const fieldName = schemaCoordinate.memberName.value;
184184
const field = type.getFields()[fieldName];
185185

186-
// 18. If {field} does not exist, return {void}.
186+
// 18. If {field} does not exist, return {null}.
187187
if (field == null) {
188188
return;
189189
}
@@ -237,7 +237,7 @@ function resolveArgumentCoordinate(
237237
(arg) => arg.name === fieldArgumentName,
238238
);
239239

240-
// 10. If {fieldArgument} does not exist, return {void}.
240+
// 10. If {fieldArgument} does not exist, return {null}.
241241
if (fieldArgument == null) {
242242
return;
243243
}
@@ -258,7 +258,7 @@ function resolveDirectiveCoordinate(
258258
const directiveName = schemaCoordinate.name.value;
259259
const directive = schema.getDirective(directiveName);
260260

261-
// 3. If {directive} does not exist, return {void}.
261+
// 3. If {directive} does not exist, return {null}.
262262
if (!directive) {
263263
return;
264264
}
@@ -295,7 +295,7 @@ function resolveDirectiveArgumentCoordinate(
295295
(arg) => arg.name === directiveArgumentName,
296296
);
297297

298-
// 6. If {directiveArgument} does not exist, return {void}.
298+
// 6. If {directiveArgument} does not exist, return {null}.
299299
if (!directiveArgument) {
300300
return;
301301
}

0 commit comments

Comments
 (0)