Example usage for Java com.mongodb.client.model Projections fields, constructors, methods, implement or subclass
The text is from its open source code.
Bson | computed(final String fieldName, final TExpression expression) Creates a projection of a field whose value is computed from the given expression. |
Bson | elemMatch(final String fieldName) Creates a projection that includes for the given field only the first element of an array that matches the query filter. |
Bson | elemMatch(final String fieldName, final Bson filter) Creates a projection that includes for the given field only the first element of the array value of that field that matches the given query filter. |
Bson | exclude(final String... fieldNames) Creates a projection that excludes all of the given fields. |
Bson | exclude(final List Creates a projection that excludes all of the given fields. |
Bson | excludeId() Creates a projection that excludes the _id field. |
Bson | fields(final Bson... projections) Creates a projection that combines the list of projections into a single one. |
Bson | fields(final List extends Bson> projections) Creates a projection that combines the list of projections into a single one. |
Bson | include(final String... fieldNames) Creates a projection that includes all of the given fields. |
Bson | include(final List Creates a projection that includes all of the given fields. |
Bson | metaTextScore(final String fieldName) Creates a projection to the given field name of the textScore, for use with text queries. |
Bson | slice(final String fieldName, final int limit) Creates a projection to the given field name of a slice of the array value of that field. |
Bson | slice(final String fieldName, final int skip, final int limit) Creates a projection to the given field name of a slice of the array value of that field. |