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

Parameter Arrays #209

Merged
merged 5 commits into from
Jan 13, 2021
Merged

Parameter Arrays #209

merged 5 commits into from
Jan 13, 2021

Conversation

alewgbl
Copy link
Contributor

@alewgbl alewgbl commented Jan 12, 2021

I have a need to specify a parameter array in a GraphQL query for compatibility with Hasura. I've been able to add the necessary functionality and a test to prove it out in this PR.

The change allows for queries like the following to be expressed:

query Query {
  fooquery(where: { _or: [{ foo: { _eq: baz } }, { bar: { _eq: qux } }] }) {
    foo
    bar
  }
}

I kept the change as small as I could so as to not affect any other functionality. All existing tests are passing.

Could this functionality be added to typed-graphqlify?

@acro5piano
Copy link
Owner

@alewgbl Thank you for the PR! LGTM

@acro5piano acro5piano merged commit 86b971a into acro5piano:master Jan 13, 2021
@acro5piano
Copy link
Owner

Release in v3.1.0.

https://github.com/acro5piano/typed-graphqlify/releases/tag/v3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants