XYO Platform SDK - v3.10.6
    Preparing search index...

    Interface ObjectResolverInstance<TResult>

    interface ObjectResolverInstance<TResult extends EmptyObject> {
        addResolver: (resolver: ObjectResolverInstance<TResult>) => this;
        priority: ObjectResolverPriority;
        removeResolver: (resolver: ObjectResolverInstance<TResult>) => this;
        resolve<T extends object = TResult>(): Promisable<undefined | T>;
        resolve<T extends object = TResult>(
            all: "*",
            options?: ObjectFilterOptions<T>,
        ): Promisable<T[]>;
        resolve<T extends object = TResult>(
            id: string,
            options?: ObjectFilterOptions<T>,
        ): Promisable<undefined | T>;
        resolve<T extends object = TResult>(
            id?: string,
            options?: ObjectFilterOptions<T>,
        ): Promisable<undefined | T | T[]>;
        resolvePrivate<T extends object = TResult>(
            all: "*",
            options?: ObjectFilterOptions<T>,
        ): Promise<T[]>;
        resolvePrivate<T extends object = TResult>(
            id: string,
            options?: ObjectFilterOptions<T>,
        ): Promise<undefined | T>;
        resolvePrivate<T extends object = TResult>(
            id: string,
            options?: ObjectFilterOptions<T>,
        ): Promise<undefined | T | T[]>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    addResolver: (resolver: ObjectResolverInstance<TResult>) => this
    removeResolver: (resolver: ObjectResolverInstance<TResult>) => this

    Methods

    • Type Parameters

      Returns Promisable<undefined | T>

      do not pass undefined. If trying to get all, pass '*'

    • Type Parameters

      Parameters

      Returns Promisable<T[]>

    • Type Parameters

      Parameters

      Returns Promisable<undefined | T>

    • Type Parameters

      Parameters

      Returns Promisable<undefined | T | T[]>