File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { isIterableObject } from '../jsutils/isIterableObject.js';
4
4
import { isObjectLike } from '../jsutils/isObjectLike.js' ;
5
5
import type { Maybe } from '../jsutils/Maybe.js' ;
6
6
7
- import type { ObjectFieldNode , ValueNode } from '../language/ast.js' ;
7
+ import type { ConstObjectFieldNode , ConstValueNode } from '../language/ast.js' ;
8
8
import { Kind } from '../language/kinds.js' ;
9
9
10
10
import type { GraphQLInputType } from '../type/definition.js' ;
@@ -41,7 +41,7 @@ import { GraphQLID } from '../type/scalars.js';
41
41
export function astFromValue (
42
42
value : unknown ,
43
43
type : GraphQLInputType ,
44
- ) : Maybe < ValueNode > {
44
+ ) : Maybe < ConstValueNode > {
45
45
if ( isNonNullType ( type ) ) {
46
46
const astValue = astFromValue ( value , type . ofType ) ;
47
47
if ( astValue ?. kind === Kind . NULL ) {
@@ -83,7 +83,7 @@ export function astFromValue(
83
83
if ( ! isObjectLike ( value ) ) {
84
84
return null ;
85
85
}
86
- const fieldNodes : Array < ObjectFieldNode > = [ ] ;
86
+ const fieldNodes : Array < ConstObjectFieldNode > = [ ] ;
87
87
for ( const field of Object . values ( type . getFields ( ) ) ) {
88
88
const fieldValue = astFromValue ( value [ field . name ] , field . type ) ;
89
89
if ( fieldValue ) {
You can’t perform that action at this time.
0 commit comments