Sanity Library Reference Docs
    Preparing search index...

    Filters are GROQ strings evaluated through groq-js with the document as the dataset and the caller's principal id as identity(). Grants compose most-permissive-wins.

    interface Grant {
        filter: string;
        permissions: ("create" | "manage" | "read" | "update")[];
    }
    Index

    Properties

    Properties

    filter: string
    permissions: ("create" | "manage" | "read" | "update")[]