Commit Graph

4 Commits

Author SHA1 Message Date
Bryan Burgers
e21f2e6316 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
267620d08e Fix incorrect variable substitution. #126 2020-05-31 11:54:07 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
6da2e3a528 Add some tests 2020-04-22 21:31:44 +08:00