Sanity Library Reference Docs
    Preparing search index...
    • The document GROQ arm — matches instances whose reactive watch-set references any of documents. Binds $documents + $bareIds into params. Exposed for list builders that compose their own conditions (e.g. the CLI's cross-partition list); instancesQuery consumers get it via the document/documents filter fields instead.

      Parameters

      • documents: readonly (
            | `dataset:${string}`
            | `canvas:${string}`
            | `media-library:${string}`
            | `dashboard:${string}`
        )[]
      • params: Record<string, string | string[]>

      Returns string