MCPcopy
hub / github.com/triggerdotdev/trigger.dev / find

Method find

integrations/shopify/src/rest.ts:86–105  ·  view source on GitHub ↗

* Fetch a single resource by its ID.

(
    key: string,
    params: Optional<Parameters<TResource["find"]>[0], "session">
  )

Source from the content-addressed store, hash-verified

84 * Fetch a single resource by its ID.
85 */
86 async find(
87 key: string,
88 params: Optional<Parameters<TResource["find"]>[0], "session">
89 ): FindReturnType<TResource> {
90 return this.runTask(
91 key,
92 async (client, task, io) => {
93 const resource = (await client.rest[this.resourceType].find(
94 this.#withSession(params)
95 )) as Awaited<ReturnType<TResource["find"]>>;
96
97 return JSON.parse(JSON.stringify(resource));
98 },
99 {
100 name: `Find ${this.resourceType}`,
101 params,
102 properties: basicProperties(params),
103 }
104 );
105 }
106
107 async #allSinglePage(
108 key: string,

Callers 15

setupFunction · 0.80
compileProjectFunction · 0.80
selectProjectFunction · 0.80
getKeyFunction · 0.80
createFunction · 0.80
getPathAliasFunction · 0.80
isMatchMethod · 0.80
createTaskFunction · 0.80
useMatchesDataFunction · 0.80
titleFunction · 0.80
RunIconFunction · 0.80
AppliedEnvironmentFilterFunction · 0.80

Calls 4

#withSessionMethod · 0.95
basicPropertiesFunction · 0.90
parseMethod · 0.80
runTaskMethod · 0.45

Tested by 2

StandardTaskFormFunction · 0.64
ScheduledTaskFormFunction · 0.64