πQuery Data
Prerequisites
Requires a user auth token. See the API Auth section.
Querying data - API
This endpoint retrieves the stored data based on the meaning of the query. The endpoins requires:
Database name:
dbA collection name:
collectionAn text string to search about:
searchoptional
count: the number of matches to return. Defaults to 3optional
metadataFilters: to further filter data by metadata. Please see subpage
import mindplug from "@/src/mindplugAPI"; // base instance
mindplug.post("/data/query", {
db: "walmart",
collection: "office supplies",
search: "an eraser with no crumbs",
count: 1
});Sample Response
Returns a list of matching responses.
Last updated