See RunSearchQueryArgs.
const matches = await runSearchQuery({
queryName: "proud-of-child",
precastBindings: { parent: ["cid-alice"] },
searchDomain: "cid-alice",
limit: 10
});
if (!matches.length) {
console.log("No matches found");
}
VivNotInitializedError If Viv has not been initialized.
VivInterpreterError If the Viv interpreter encounters an issue in the course of query execution.
VivValidationError If the supplied args do not conform to the expected schema.
VivValidationError If there is no defined search query with the given queryName.
VivValidationError If searchDomain is provided, but is not the entity ID for a character.
Executes the given search query over the specified search domain, and returns entity IDs for matching actions.