docs: add Query documentation (#9079)

- Replace remote query documentation with new Query documentation
- Add redirect from old remote query to new query documentation
- Update remote query usages across docs to use new query usage.
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-09-10 12:31:47 +00:00
1 parent 1d8dd54014
commit e9b5f76f9a
31 files changed
+437 -635

No files matched your search

@@ -94,7 +94,7 @@ This property is an object that holds additional data passed to the workflow.
To pass that additional data when executing the workflow, pass it as a parameter to the `.run` method of the workflow:
```ts highlights={[["10", "additional_data"]]}
import type { MedusaRequest, MedusaResponse } from "@medusajs/medusa";
import type { MedusaRequest, MedusaResponse } from "@medusajs/medusa"
import { createProductsWorkflow } from "@medusajs/core-flows"
export async function POST(req: MedusaRequest, res: MedusaResponse) {
@@ -104,8 +104,8 @@ export async function POST(req: MedusaRequest, res: MedusaResponse) {
// ...
],
additional_data: {
custom_field: "test"
}
custom_field: "test",
},
},
})
}