Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus/docs/dev-docs/backend-customization/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ General settings for the model can be configured with the following parameters:
| `kind`<br /><br />_Optional,<br/>only for content-types_ | String | Defines if the content-type is:<ul><li>a collection type (`collectionType`)</li><li>or a single type (`singleType`)</li></ul> |

```json
// ./api/[api-name]/content-types/restaurant/schema.json
// ./src/api/[api-name]/content-types/restaurant/schema.json

{
"kind": "collectionType",
Expand Down Expand Up @@ -653,7 +653,7 @@ Lifecycle hooks are functions that take an `event` parameter, an object with the

### Declarative and programmatic usage

To configure a content-type lifecycle hook, create a `lifecycles.js` file in the `./api/[api-name]/content-types/[content-type-name]/` folder.
To configure a content-type lifecycle hook, create a `lifecycles.js` file in the `./src/api/[api-name]/content-types/[content-type-name]/` folder.

Each event listener is called sequentially. They can be synchronous or asynchronous.

Expand Down