Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias DatasetContext

    what a dataset's functions receive; a public dataset has no identity

    type DatasetContext = {
        principal?: Identity;
        request: Request;
        url: URL;
    }
    Index
    principal?: Identity

    who is asking; set for a principal dataset and absent, not null, for a public one

    request: Request

    the request being answered

    url: URL

    the request URL, parsed