Sanity Library Reference Docs
    Preparing search index...

    Class ObservableUsersClient

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Fetch a user by user ID

      Type Parameters

      • T extends string

      Parameters

      • id: T

        User ID of the user to fetch. If me is provided, a minimal response including the users role is returned.

      Returns Observable<T extends "me" ? CurrentSanityUser : SanityUser>