Closed jakenuts closed 9 months ago
Hi @jakenuts I see how this can be useful to allow passing variables.
There was a few things I wanted to change and clean up so I've made another PR and will close this one.
See https://github.com/nozzlegear/ShopifySharp/pull/966
In particular, the new PR makes it easier to use because the user doesn't have to serialize the request themselves, or pass a media type.
Let me know if you have any remarks though.
Great, I was hesitant about the asymmetry of the methods, glad you found a way to make it more consistent. Thanks!
Added overloads of the
GraphService.SendAsync
methods to allow passingmediaType
parameter so "application/json" can be used when passing a json query and variables.Forwarding existing
GraphService.SendAsync
to the overloads passing the "application/graphql" media type to preserve their behavior.Added test method
GetProductsAsParameterizedJsonQuery
to validate the new SendAsync overloads.