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

Unable to query Digital Products with GraphQL: Cannot query field "digitalProduct" on type "Query" #96

Closed
tommysvr opened this issue Mar 1, 2024 · 1 comment
Labels

Comments

@tommysvr
Copy link

tommysvr commented Mar 1, 2024

Description

Unable to query Digital Products with GraphQL.

Using the example in the docs:

query {
    digitalProducts(type: "eBooks", limit: 2) {
        title,
        sku,
        price
    }
}

Returns:

{
  "errors": [
    {
      "message": "Cannot query field \"digitalProducts\" on type \"Query\".",
      "extensions": {
        "category": "graphql"
      },
      "locations": [
        {
          "line": 2,
          "column": 5
        }
      ]
    }
  ]
}

Additional info

digitalProducts and digitalProduct are not available in the explorer.

  • Craft version: 4.8 (also tested on 3.9.10)
  • Plugins & versions: Commerce 3.4.23 / Digital Products 2.4.3.2
@lukeholder
Copy link
Member

This should now be fixed in 4.0.2 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants