Validations query always returns empty array

Topic summary

Main issue: A developer saw validations{ nodes { id title } } return an empty array in the GraphQL Admin API (2024-04), even though a specific validation could be fetched directly by ID.

Root cause: The validations query is scoped to the current app. It only returns validations created by the app making the request, not all validations present in the store.

Resolution: Once the app-scoped behavior was understood, the empty result made sense because existing validations were created by a different partner app. No API issue was involved.

Implications: To list validations, ensure they were created by the same app (or query by ID for that app’s own validations). Store-wide enumeration of validations from other apps isn’t supported via this field.

Status: Resolved; no further action required.

Summarized with AI on December 25. AI used: gpt-5.

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?

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.