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

Added ability to override the API version used when instantiating a GraphService #749

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

clement911
Copy link
Collaborator

ShopifySharp is pinned to an API version, which makes sense when using the REST API because the requets and responses objects are defined in the library itself.

However, for GraphService, it makes sense to be able to override the desired API version since the response is dictated by the shape of the request.
For example, right now I'd like to create a grapqhQL request with the latest stable version but I can't because ShopifySharp is pinned to an earlier version. (I know that I can override the GraphService and override the api version but I think that being able to override it in the constructor makes it a lot easier).

@shiroyama-kimi
Copy link

Any idea when this can be approved. I have a similar use case where i need to set the version to the latest in order to access some nodes in the graph service that are only available in the latest version.

@nozzlegear nozzlegear merged commit 70620d5 into nozzlegear:master Jul 12, 2022
@nozzlegear
Copy link
Owner

This has been released in 5.16.0 on nuget! Sorry about the wait!

@clement911 clement911 deleted the graph-service-api-override branch November 8, 2022 00:12
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.

3 participants