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

This doesn't support mutations? #3

Closed
jackyzhen opened this issue Oct 18, 2016 · 2 comments
Closed

This doesn't support mutations? #3

jackyzhen opened this issue Oct 18, 2016 · 2 comments
Assignees

Comments

@jackyzhen
Copy link

Maybe I'm not understanding how to work this but I can't build a mutation with this library. Is there an example of a mutation request?

@thani-sh
Copy link
Contributor

thani-sh commented Oct 18, 2016

You can do something like this:

const mutation = 'mutation ' + graphqlify({ setFoo: { params{value: 100} } })
// mutation {setFoo(value:100)}

I guess it'll be easier if we implement helper functions for these. What do you think?

// this is not available right now
const query = graphqlify.query({})
const mutation = graphqlify.mutation({})

edit: fix the example javascript code (first method)

@thani-sh thani-sh self-assigned this Oct 26, 2016
@thani-sh
Copy link
Contributor

thani-sh commented Nov 1, 2016

Fixed with #6
Released v1.1.0

@thani-sh thani-sh closed this as completed Nov 1, 2016
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

No branches or pull requests

2 participants