ChemPal Documentation - v1.6.0
    Preparing search index...

    Variable executeSDQSearchConst

    executeSDQSearch: (query: SDQAgentQuery) => Promise<SDQResultItem[] | undefined> = ...

    Query the SDQ agent for a compound name from a synonym. Results are cached for three days.

    Type declaration

    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' });