- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
useQueryGraphStep - Helper Steps API Reference
This documentation provides a reference to the useQueryGraphStep
step. It belongs to the @medusajs/medusa/core-flows
package.
This step fetches data across modules using the Query.
Learn more in the Query documentation.
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:
To set pagination configurations:
Input#
UseQueryGraphStepInput
UseQueryGraphStepInput<TEntry>
UseQueryGraphStepInput
UseQueryGraphStepInput<TEntry>TEntry
TEntry
TEntry
TEntryOutput#
GraphResultSet
GraphResultSet<TEntry>
GraphResultSet
GraphResultSet<TEntry>TEntry
TEntry
TEntry
TEntryWas this page helpful?