tarantool / graphql

GraphQL implementation in Lua
MIT License
15 stars 3 forks source link

Rename defaultValues to variablesDefaultValues in execute.getFieldEntry() #42

Closed no1seman closed 2 years ago

no1seman commented 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.

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 }) }