Validations query always returns empty array

Solved

Validations query always returns empty array

kjdointhings
Shopify Partner
28 2 11

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
28 2 11

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
28 2 11

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.