Skip to content

Feat/disabled fields#38

Merged
ivanhuay merged 4 commits into
masterfrom
feat/disabledFields
May 14, 2026
Merged

Feat/disabled fields#38
ivanhuay merged 4 commits into
masterfrom
feat/disabledFields

Conversation

@ivanhuay

Copy link
Copy Markdown
Owner

disabledFields feature added
docs updated

ivanhuay added 4 commits May 10, 2026 16:52
Blacklist sensitive fields from all GET responses, including when
the model is populated from another model. Mirror opposite of
allowedFields — use when it's easier to hide a few fields (password,
ssn) than whitelist every exposed field.

Takes precedence over ?select= query params that attempt to request
a disabled field. Automatically propagates to cross-model populate
via Mongoose select.
@ivanhuay ivanhuay merged commit 7e26877 into master May 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant