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 Query Variables #1

Closed
ashkan18 opened this issue Oct 4, 2017 · 1 comment
Closed

Support Query Variables #1

ashkan18 opened this issue Oct 4, 2017 · 1 comment

Comments

@ashkan18
Copy link
Owner

ashkan18 commented Oct 4, 2017

So we can do things like

query invoiceStates($ids: [ID!], $partner_id: String!) {
      invoices(ids: $ids, partner_id: $partner_id)
      {
        id
      }
}
@dblock
Copy link
Collaborator

dblock commented Oct 18, 2017

I think this is the next important thing. Basically what is the equivalent of

          post '/api/graphql', params: {
            variables: {
              input: {
                email: 'matt@example.org'
              }
            },
            query: %{
              mutation($input: createRsvpInput!) {
                createRsvp(input: $input) {
                  id
                  total_count
                }
              }
            }
          }

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

No branches or pull requests

2 participants