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

Shopify-buy unable to retrieve several parameteres #949

Open
RamJogal opened this issue Apr 20, 2023 · 3 comments
Open

Shopify-buy unable to retrieve several parameteres #949

RamJogal opened this issue Apr 20, 2023 · 3 comments

Comments

@RamJogal
Copy link

Hi team
, team. When I try to access Shopify products using the npm package Shopify -buy, I get the error shown above.
Framework
React

Shopify-buy Version

2.19.0

 {
    "message": "Selections can't be made on scalars (field 'price' returns Money but has selections [amount, currencyCode])",
    "locations": [
        {
            "line": 1,
            "column": 56
        }
    ],
    "path": [
        "fragment VariantFragment",
        "price"
    ],
    "extensions": {
        "code": "selectionMismatch",
        "nodeName": "field 'price'",
        "typeName": "Money"
    }
}
@JeffJassky
Copy link

JeffJassky commented Jul 5, 2023

This is also happening to me - all of a sudden out of nowhere. Any chance you found a work around? #960 and #959 seem to be related.

@RamJogal
Copy link
Author

RamJogal commented Jul 6, 2023

Yes This was Beacuse While Using the SDK i wasn't providing the API version as " " in the arguments so of which many parameters were missing, to solve the above issue i added some value to API version in the argument now every thing is working fine

@RamJogal
Copy link
Author

RamJogal commented Jul 7, 2023

Hi Jeff My bad Earlier I kept the API Version as " " in arguments after that I tried that with some values everything was working fine so after that i removed the API version argument from the arguments
this.client = Client.buildClient({
domain,
storefrontAccessToken,
});

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