machinebox / graphql

Simple low-level GraphQL HTTP client for Go
https://blog.machinebox.io/a-graphql-client-library-for-go-5bffd0455878
Apache License 2.0
933 stars 218 forks source link

Is object input type supported for requests? #16

Closed suman-anand-grab closed 6 years ago

suman-anand-grab commented 6 years ago

Is the object input type supported for making requests. https://medium.com/graphql-mastery/json-as-an-argument-for-graphql-mutations-and-queries-3cd06d252a04

matryer commented 6 years ago

I don't see why not. From what I understand, they just go into the query. Is that right?

suman-anand-grab commented 6 years ago

So I just create a struct and send it as a variable after assigning some values?

matryer commented 6 years ago

I assume you’d just make a query that had the input stuff at the top? So it goes into the actual query string. Then use variables to fill in the values when you use the type.

This is more of a GraphQL question I think, and I’m far from being an expert.

suman-anand-grab commented 6 years ago

Great. Thanks i will close this issue.