Package org.mongojack

Class DBProjection.ProjectionBuilder

    • Method Detail

      • include

        public DBProjection.ProjectionBuilder include​(String... fields)
        Include the given fields in the results.
        Parameters:
        fields - The fields to include.
        Returns:
        The projection.
      • exclude

        public DBProjection.ProjectionBuilder exclude​(String... fields)
        Exclude the given fields from the results.
        Parameters:
        fields - The fields to exclude.
        Returns:
        The projection.