Type alias FetchObjectsOptions<T>

FetchObjectsOptions<T>: {
    after?: string;
    filters?: FilterValue;
    includeVector?: boolean | string[];
    limit?: number;
    offset?: number;
    returnMetadata?: QueryMetadata;
    returnProperties?: QueryProperty<T>[];
    returnReferences?: QueryReference<T>[];
    sort?: Sorting<T>;
}

Options available in the query.fetchObjects method

Type Parameters

  • T

Type declaration

  • Optional after?: string

    The cursor to start the query from. Incompatible with the offset param

  • Optional filters?: FilterValue

    The filters to be applied to the query. Use weaviate.filter.* to create filters

  • Optional includeVector?: boolean | string[]

    Whether to include the vector of the object in the response. If using named vectors, pass an array of strings to include only specific vectors.

  • Optional limit?: number

    How many objects to return in the query

  • Optional offset?: number

    How many objects to skip in the query. Incompatible with the after cursor

  • Optional returnMetadata?: QueryMetadata

    Which metadata of the object to return. If not specified, no metadata is returned.

  • Optional returnProperties?: QueryProperty<T>[]

    Which properties of the object to return. Can be primitive, in which case specify their names, or nested, in which case use the QueryNested type. If not specified, all properties are returned.

  • Optional returnReferences?: QueryReference<T>[]

    Which references of the object to return. If not specified, no references are returned.

  • Optional sort?: Sorting<T>

    The sorting to be applied to the query. Use weaviate.sort.* to create sorting