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

@@ -8,6 +8,12 @@ export const metadata = {
This documentation page includes the list of resources registered in the Medusa container of your Medusa application.
<Note>
Use the `ContainerRegistrationKeys` enum imported from `@medusajs/utils` to resolve these resources' names.
</Note>
<Table>
<Table.Header>
<Table.Row>
@@ -43,7 +49,7 @@ This documentation page includes the list of resources registered in the Medusa
</Table.Cell>
<Table.Cell>
`configModule`
`configModule` or `ContainerRegistrationKeys.CONFIG_MODULE`
</Table.Cell>
</Table.Row>
@@ -61,7 +67,7 @@ This documentation page includes the list of resources registered in the Medusa
</Table.Cell>
<Table.Cell>
`logger`
`logger` or `ContainerRegistrationKeys.LOGGER`
</Table.Cell>
</Table.Row>
@@ -69,17 +75,17 @@ This documentation page includes the list of resources registered in the Medusa
<Table.Row>
<Table.Cell>
Remote Query
Query
</Table.Cell>
<Table.Cell>
The remote query function.
The Query utility methods.
</Table.Cell>
<Table.Cell>
`remoteQuery`
`query` or `ContainerRegistrationKeys.QUERY`
</Table.Cell>
</Table.Row>
@@ -97,7 +103,7 @@ This documentation page includes the list of resources registered in the Medusa
</Table.Cell>
<Table.Cell>
`remoteLink`
`remoteLink` or `ContainerRegistrationKeys.REMOTE_LINK`
</Table.Cell>
</Table.Row>