MCPcopy Create free account
hub / github.com/effect-app/libs / makeQueryKey

Function makeQueryKey

packages/effect-app/src/client/clientFor.ts:89–95  ·  view source on GitHub ↗
({ id, options }: { id: string; options?: ClientForOptions })

Source from the content-addressed store, hash-verified

87// $Project/$Configuration.Index
88// -> "$Project", "$Configuration", "Index"
89export const makeQueryKey = ({ id, options }: { id: string; options?: ClientForOptions }) =>
90 id
91 .split("/")
92 .filter((segment: string) => !options || !options.skipQueryKey?.includes(segment))
93 .map((segment: string) => "$" + segment)
94 .join(".")
95 .split(".")
96
97export interface RequestHandlerWithInput<I, A, E, R, Request extends Req, Id extends string> {
98 handler: (i: I) => Effect.Effect<A, E, R>

Callers 13

normalizeKeyFunction · 0.90
makeClient.test.tsFile · 0.90
makeTanstackHarnessFunction · 0.90
makeAtomHarnessFunction · 0.90
buildQueryFamilyFunction · 0.90
buildStreamQueryFamilyFunction · 0.90
queryFamilyCacheKeyFunction · 0.90
defaultGetQueryKeyFunction · 0.90

Calls 4

joinMethod · 0.80
filterMethod · 0.80
splitMethod · 0.65
mapMethod · 0.65

Tested by 2

makeTanstackHarnessFunction · 0.72
makeAtomHarnessFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…