diff --git a/.changeset/strong-wolves-cry.md b/.changeset/strong-wolves-cry.md new file mode 100644 index 0000000000..aa9095fa55 --- /dev/null +++ b/.changeset/strong-wolves-cry.md @@ -0,0 +1,5 @@ +--- +"@medusajs/core-flows": patch +--- + +fix(core-flows): useQueryGraph util return type diff --git a/packages/core/core-flows/src/common/steps/use-query-graph.ts b/packages/core/core-flows/src/common/steps/use-query-graph.ts index 6324d755b9..f9faf00bd4 100644 --- a/packages/core/core-flows/src/common/steps/use-query-graph.ts +++ b/packages/core/core-flows/src/common/steps/use-query-graph.ts @@ -7,9 +7,10 @@ import { import { createStep, StepFunction, StepResponse } from "@medusajs/workflows-sdk" import { ContainerRegistrationKeys } from "@medusajs/utils" -export type UseQueryGraphStepInput = RemoteQueryInput & { - options?: RemoteJoinerOptions -} +export type UseQueryGraphStepInput = + RemoteQueryInput & { + options?: RemoteJoinerOptions + } const useQueryGraphStepId = "use-query-graph-step" @@ -30,7 +31,7 @@ const step = createStep( * This step fetches data across modules using the Query. * * Learn more in the [Query documentation](https://docs.medusajs.com/learn/fundamentals/module-links/query). - * + * * @example * To retrieve a list of records of a data model: * @@ -101,5 +102,7 @@ const step = createStep( */ export const useQueryGraphStep = ( input: UseQueryGraphStepInput -): ReturnType, GraphResultSet>> => - step(input as any) as unknown as ReturnType, GraphResultSet>> +): ReturnType>> => + step(input as any) as unknown as ReturnType< + StepFunction> + >