Skip to content

Commit

Permalink
Remove populateCreatorFields from models
Browse files Browse the repository at this point in the history
  • Loading branch information
stb13579 authored and derrickmehaffy committed May 10, 2022
1 parent e485b51 commit 47dca56
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ The `options` key is used to define specific behaviors and accepts the following
| Parameter | Type | Description |
| ----------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `privateAttributes` | Array of strings | Allows treating a set of attributes as private, even if they're not actually defined as attributes in the model. It could be used to remove them from API responses timestamps.<br><br>The set of `privateAttributes` defined in the model are merged with the `privateAttributes` defined in the global Strapi configuration. |
| `populateCreatorFields` | Boolean | Toggles including the `created_by` and `updated_by` fields in the API response.<br><br>Default value: `false` |
| `draftAndPublish` | Boolean | Enables the draft and publish feature.<br><br>Default value: `false` |

```json
Expand All @@ -549,7 +548,6 @@ The `options` key is used to define specific behaviors and accepts the following
{
"options": {
"privateAttributes": ["id", "created_at"],
"populateCreatorFields": true,
"draftAndPublish": false
}
}
Expand Down

0 comments on commit 47dca56

Please sign in to comment.