MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / queryMeta

Method queryMeta

client/src/api/metadata/api-client.ts:78–89  ·  view source on GitHub ↗
(queryString: string)

Source from the content-addressed store, hash-verified

76 }
77
78 async queryMeta(queryString: string): Promise<SigMFMetadata[]> {
79 const response = await this.authUtil.requestWithAuthIfRequired({
80 method:'get',
81 url: `/api/datasources/query?${queryString}`
82 });
83 return response.data.map((item, i) => {
84 item = Object.assign(new SigMFMetadata(), item);
85 item.annotations = item.annotations?.map((annotation) => Object.assign(new Annotation(), annotation));
86 item.captures = item.captures?.map((capture) => Object.assign(new CaptureSegment(), capture));
87 return item;
88 });
89 }
90
91 async smartQuery(queryString: string, signal: AbortSignal): Promise<any> {
92 const response = await this.authUtil.requestWithAuthIfRequired({

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected