Sanity Library Reference Docs
    Preparing search index...
    • All guards a workflow's definition deployed, unioned across the datasources its guards statically name — no live instance required. Guard docs are stamped with the version-less definition, so this spans the datasources declared across ALL deployed versions (definitions), not just the latest.

      A datasource is statically reachable when a guard idRef resolves to a hardcoded GDR literal — directly, or via a fieldRead of a field entry whose initialValue is a literal GDR — or to the workflow resource (self, or a query-sourced field entry, which restamps into it). Guards whose resource is only known once an instance exists — reading a subject / input / otherwise runtime-sourced field entry — are NOT reachable here; that is the per-instance boundary, use guardsForInstance. Dedups resources by key, results by _id.

      Returns Promise<MutationGuardDoc[]>