docs: general updates and fixes (#13374)
* docs: general updates and fixes * fix lint errors
This commit is contained in:
@@ -8,7 +8,9 @@ export const metadata = {
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
This method creates one or more records of the data model.
|
||||
This method of a module's service creates one or more records of a data model.
|
||||
|
||||
The method's name is of the format `createDataModel`, where `DataModel` is the plural pascal-case name of the data model.
|
||||
|
||||
## Create One Record
|
||||
|
||||
@@ -22,7 +24,7 @@ const post = await postModuleService.createPosts({
|
||||
})
|
||||
```
|
||||
|
||||
If an object is passed of the method, an object of the created record is also returned.
|
||||
If an object is passed to the method, the created record object is returned.
|
||||
|
||||
---
|
||||
|
||||
@@ -41,4 +43,4 @@ const posts = await postModuleService.createPosts([
|
||||
])
|
||||
```
|
||||
|
||||
If an array is passed of the method, an array of the created records is also returned.
|
||||
If an array of objects is passed to the method, an array containing the created records is returned.
|
||||
|
||||
Reference in New Issue
Block a user