data-cap
    Preparing search index...

    Function documentData

    • Adds documentation/operational metadata to the same capability graph a buildData/createData call describes, without introducing runtime behavior.

      config should be the exact same schema object passed to createData/ buildData (typically a separately-declared const reused by both calls, the same way a fields identifier is already shared) -- passing the same object is what lets docs' getters/mutators/subscriptions keys be checked against the schema's real operation names, not just its fields. A {fields}-only config (no operations) still works for a capability with none to document.

      Type Parameters

      Parameters

      Returns void

      Intentionally inert: everything here happens at build time, in build tooling that statically discovers this call -- never at runtime, in every process that imports the capability file, which is exactly what this split (mirroring env-cap's documentEnv) exists to avoid. Never throws, regardless of malformed input, and a documentData call is never itself evidence that an executable capability exists -- static analysis (build) inspects only real buildData/createData calls.