Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support object literals in GraphQL operations #47

Open
samrmur opened this issue Sep 13, 2021 · 0 comments
Open

Support object literals in GraphQL operations #47

samrmur opened this issue Sep 13, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@samrmur
Copy link
Contributor

samrmur commented Sep 13, 2021

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") {
💥
@samrmur samrmur added bug Something isn't working good first issue Good for newcomers labels Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant