Support object literals in GraphQL operations
samrmur opened this issue · 0 comments
samrmur commented
Problem
Currently, you can create a GraphQL operation where object arguments can be defined through GraphQL arguments but not through arguments literals.
Syrup
seems to strip curly brackets and commas from the object literal.
Examples
Query with object literal
query NodeQuery {
node(complexId: {
id: "something",
locale: "en"
}) {
id
}
}
Produced error
Unterminated argument list starting at line: 3 column: 6 associated with the following input:
✓ query NodeQuery {
✓ __typename
💥 node(complexId: id: "something"locale: "en") {
💥