Skip to main content

Summary

Deterministic selector-based search returning mutation-grade addresses and text ranges. Use this to discover targets before any mutation.
  • Operation ID: query.match
  • API member path: editor.doc.query.match(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a QueryMatchOutput with the resolved target address and cardinality metadata.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • MATCH_NOT_FOUND
  • AMBIGUOUS_MATCH
  • INVALID_INPUT
  • INTERNAL_ERROR
  • STORY_NOT_FOUND
  • STORY_MISMATCH
  • STORY_NOT_SUPPORTED
  • CROSS_STORY_PLAN
  • MATERIALIZATION_FAILED

Non-applied failure codes

  • None

Raw schemas