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

Failed to get dynamic context within GraphQL query #42

Open
royyanbach opened this issue Mar 30, 2024 · 0 comments
Open

Failed to get dynamic context within GraphQL query #42

royyanbach opened this issue Mar 30, 2024 · 0 comments

Comments

@royyanbach
Copy link

I cant seem to get this code working when using dynamic context with GraphQL:

export const query =`
# $product_uid: "foo"
query MyQuery($product_uid: String!) {
  HUBDB {
    my_product_collection(limit: 3, filter: {product_uid__contains: $product_uid}) {
      items {
        product_name
      }
    }
  }
}`

I got this error:

Variable 'product_uid' has coerced Null value for NonNull type 'String!

Tested with:

  • @hubspot/cms-components: 0.14.16
  • @hubspot/cms-dev-server: 0.14.13
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

1 participant