ConstThe SDQ agent query (where clause, select fields, limit)
The compound name from the SDQ agent.
const cmpd = await executeSDQSearch({
where: { cmpdsynonym: "2-Acetoxybenzenecarboxylic acid" },
select: ["cid", "cmpdname"],
limit: 1,
});
console.log(cmpd);
// Outputs: Aspirin
export const executeSDQSearch: (query: SDQAgentQuery) => Promise<SDQResultItem[] | undefined> =
withTtlCache(executeSDQSearchUncached, { namespace: 'sdqSearch' });
Query the SDQ agent for a compound name from a synonym. Results are cached for three days.