What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Validations query always returns empty array

Solved

Validations query always returns empty array

kjdointhings
Shopify Partner
29 2 12

I have 1 validation in my store that I am able to query directly by querying for the ID. But the validations query always returns an empty array.

 

{
  validations(first: 10) {
    nodes {
      id
      title
    }
  }
}

This is with the GraphQL Admin API v 2024-04.

 

Anyone else have issues with validations? Am I missing something?

Accepted Solution (1)

kjdointhings
Shopify Partner
29 2 12

This is an accepted solution.

Solved, I was thinking that it would query any validation in the store, but it's specific to the current app. The only validations in the store were created by a different partner app which is why it was returning empty.

View solution in original post

Reply 1 (1)

kjdointhings
Shopify Partner
29 2 12

This is an accepted solution.

Solved, I was thinking that it would query any validation in the store, but it's specific to the current app. The only validations in the store were created by a different partner app which is why it was returning empty.