Sanity Library Reference Docs
    Preparing search index...
    AtomRequirement:
        | { kind: "equals"; target: ConditionRead; value: unknown }
        | { kind: "differs"; target: ConditionRead; value: unknown }
        | { kind: "defined"; target: ConditionRead }
        | { kind: "undefined"; target: ConditionRead }
        | { kind: "truthy"; target: ConditionRead }
        | { kind: "falsy"; target: ConditionRead }
        | {
            kind: "compares";
            op: ComparisonOp;
            target: ConditionRead;
            value: unknown;
        }

    What one scope read must satisfy for an atom to hold. A requirement can describe a comparison with a literal, a presence check, or a bare read. Atoms whose expressions cannot be expressed as requirements still appear in AtomInsight; use their GROQ expressions for display.