Prometheus Entity Management API
    Preparing search index...

    Interface GQLEntityOptions<TData, TEntity>

    interface GQLEntityOptions<TData, TEntity extends object> {
        client: GQLClient;
        descriptor: EntityDescriptor<unknown, TEntity>;
        document: string;
        enabled?: boolean;
        id: string | null | undefined;
        onError?: (err: Error) => void;
        onSuccess?: (data: TData) => void;
        sideDescriptors?: EntityDescriptor<unknown, Record<string, unknown>>[];
        staleTime?: number;
        type: string;
        variables?: Record<string, unknown>;
    }

    Type Parameters

    • TData
    • TEntity extends object
    Index
    client: GQLClient
    descriptor: EntityDescriptor<unknown, TEntity>
    document: string
    enabled?: boolean
    id: string | null | undefined
    onError?: (err: Error) => void
    onSuccess?: (data: TData) => void
    sideDescriptors?: EntityDescriptor<unknown, Record<string, unknown>>[]
    staleTime?: number
    type: string
    variables?: Record<string, unknown>