- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
useRemoteQueryStep - Medusa Core Workflows Reference
This documentation provides a reference to the useRemoteQueryStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step fetches data across modules using the remote query.
Learn more in the Remote Query documentation.
Note: This step is deprecated. Use useQueryGraphStep instead.
Example#
To retrieve a list of records of a data model:
To retrieve a single item instead of a an array:
To throw an error if a record isn't found matching the specified ID:
Input#
EntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInputEntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInput
EntryStepInput | ServiceStepInputWas this page helpful?