({ id, options }: { id: string; options?: ClientForOptions })
| 87 | // $Project/$Configuration.Index |
| 88 | // -> "$Project", "$Configuration", "Index" |
| 89 | export 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 | |
| 97 | export interface RequestHandlerWithInput<I, A, E, R, Request extends Req, Id extends string> { |
| 98 | handler: (i: I) => Effect.Effect<A, E, R> |
searching dependent graphs…