Closed no1seman closed 2 years ago
According to GraphQL spec it's possible to point a value of variable not only in variables map but inline it into request itself, for example:
query TEST($num: Int, $str: String = "variable") { test_G: test(arg: { num: $num, str: $str }) }
Thus in this PR defaultValues in execute.getFieldEntry() renamed to variablesDefaultValues to be more clear for anyone who reading sources.
defaultValues
variablesDefaultValues
Also added test to check the same semantic for custom directives: query TEST($num: Int, $str: String = "variable") { test_G: test(arg: { num: 2, str: "s" })@override_v2(arg: { num: $num, str: $str }) }
According to GraphQL spec it's possible to point a value of variable not only in variables map but inline it into request itself, for example:
query TEST($num: Int, $str: String = "variable") { test_G: test(arg: { num: $num, str: $str }) }
Thus in this PR
defaultValues
in execute.getFieldEntry() renamed tovariablesDefaultValues
to be more clear for anyone who reading sources.Also added test to check the same semantic for custom directives: query TEST($num: Int, $str: String = "variable") { test_G: test(arg: { num: 2, str: "s" })@override_v2(arg: { num: $num, str: $str }) }