Skip to content

Conversation

@thomasdarimont
Copy link

...ude the _id property in a projection.

Added guard to FieldProjection.from within ProjectionOption to prevent users from excluding fields other than "_id".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really have to fix this here? I think simply rejecting _id in ….addExclude(…) should be enough, shouldn't it?

…xclude the _id property in a projection. Added guard to FieldProjection.from within ProjectionOption to prevent users from excluding fields other than "_id".
@thomasdarimont
Copy link
Author

Revised code according to remarks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants