Commit Graph

4 Commits

Author SHA1 Message Date
Bryan Burgers
81c7683e4d Allow vars to be missing when def is nullable
Allow variables to be missing when the associated variable definition is
nullable (in which case we use `null` as the default).

This fixes queries like

```graphql
query Test($var: Int) {
    test(var: $var)
}
```

```json
{}
```

which appear to be allowed according to the GraphQL spec.
2020-06-11 10:00:47 -05:00
Sunli
d932d30209 Fix incorrect variable substitution. #126 2020-05-31 11:54:07 +08:00
sunli
1bc97de889 fix #33 2020-04-27 12:57:52 +08:00
sunli
6dfa6a2614 Add some tests 2020-04-22 21:31:44 +08:00