Constructs an instance of Client for a specific account and collection.
const client = new APIClient("<account_id>", "<collection_id>");
It is also possible to optionally set the API endpoint:
const client = new APIClient("<account_id>", "<collection_id>", "<endpoint>");
pipeline creates a new QueryPipeline instance that inherits configuration from the Client.
pipeline name
Query runs a search query.
client.query({ variables: { q: "<search query>" } })
.then((response) => {
// handle response
})
.catch(error => {
// handle error
})
Generated using TypeDoc
Client defines a client for interacting with the Sajari API.