Skip to content
Merged
Show file tree
Hide file tree
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: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ dist

# Other
*.DS_Store

# IDE
.idea
.vscode
7 changes: 7 additions & 0 deletions developer-docs/latest/concepts/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ module.exports = ({ env }) => ({
responses: {
privateAttributes: ['_v', 'id', 'created_at'],
},
rest: {
defaultLimit: 100,
maxLimit: 250,
},
});
```

Expand All @@ -293,6 +297,9 @@ module.exports = ({ env }) => ({
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------- |
| `responses` | Global API response configuration | Object | |
| `responses.privateAttributes` | Set of globally defined attributes to be treated as private. E.g. `_v` when using MongoDb or timestamps like `created_at`, `updated_at` can be treated as private | String array | `[]` |
| `rest` | REST API configuration | Object | |
| `rest.defaultLimit` | Specifies default `_limit` parameter used in API calls | Integer | `100` |
| `rest.maxLimit` | Specifies max allowed number that can be requested as `_limit`. Default to `null` which fetches all results | Integer | `null` |

## Functions

Expand Down