Sanity Library Reference Docs
    Preparing search index...

    Interface DefaultDocumentNodeContext

    An object holding the documentId and schemaType for the document node being resolved.

    interface DefaultDocumentNodeContext {
        currentUser: CurrentUser;
        dataset: string;
        documentId?: string;
        getClient: (options: SourceClientOptions) => SanityClient;
        i18n: LocaleSource;
        projectId: string;
        schema: Schema;
        schemaType: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    currentUser: CurrentUser

    The current user or null if not authenticated.

    dataset: string

    The name of the dataset.

    documentId?: string

    The id of the sanity document

    getClient: (options: SourceClientOptions) => SanityClient

    A function that returns a Sanity client with the specified options.

    Localization resources

    projectId: string

    The ID of the project.

    schema: Schema

    The schema for this source.

    schemaType: string

    the schema of the sanity document