docs: general updates and fixes (#13374)

* docs: general updates and fixes

* fix lint errors
This commit is contained in:
Shahed Nasser
2025-09-02 09:07:07 +03:00
committed by GitHub
parent c717535ca2
commit 24199fa47a
25 changed files with 477 additions and 396 deletions
@@ -8,7 +8,9 @@ export const metadata = {
# {metadata.title}
This method retrieves one record of the data model by its ID.
This method retrieves one record of a data model by its ID.
The method's name is `retrieveDataModel`, where `DataModel` is the singular pascal-case name of the data model.
## Retrieve a Record
@@ -42,7 +44,7 @@ const post = await postModuleService.retrievePost("123", {
### Parameters
To retrieve the data model with relations, pass as a second parameter of the method an object with the property `relations`. `relations`'s value is an array of relation names.
To retrieve the data model with relations, pass an object with the property `relations` as the second parameter. `relations`'s value is an array of relation names.
### Returns
@@ -60,7 +62,7 @@ const post = await postModuleService.retrievePost("123", {
### Parameters
By default, all of the record's properties are retrieved. To select specific ones, pass in the second object parameter a `select` property. Its value is an array of property names.
By default, all of the record's properties are retrieved. To select specific ones, pass a `select` property in the second object parameter. Its value is an array of property names.
### Returns