docs: add section on querying records from a link's table (#10165)

This commit is contained in:
Shahed Nasser
2024-11-19 18:28:10 +02:00
committed by GitHub
parent dbd06a131a
commit be700e31f2
3 changed files with 94 additions and 40 deletions
@@ -111,16 +111,10 @@ await remoteLink.create({
## Retrieve Custom Column with Link
To retrieve linked records with their custom columns, use Query and pass the link definition as the `entity` property's value.
To retrieve linked records with their custom columns, use [Query](../query/page.mdx). A module link's definition, exported by a file under `src/links`, has a special `entryPoint` property. Use this property when specifying the `entity` property in Query's `graph` method.
For example:
<Note>
Learn more about Query and how to resolve use it [this chapter](../remote-link/page.mdx).
</Note>
export const retrieveHighlights = [
["1", "productHelloLink", "Import the exported link definition."],
["6", "entity", "Pass the link definition to retrieve its data."],