Example usage for com.mongodb.client.model Projections slice

List of usage examples for com.mongodb.client.model Projections slice

Introduction

In this page you can find the example usage for com.mongodb.client.model Projections slice.

Prototype

public static Bson slice(final String fieldName, final int skip, final int limit) 

Source Link

Document

Creates a projection to the given field name of a slice of the array value of that field.

Usage

From source file:mongodb.clients.percunia.mongo.Projection.java

License:Apache License

public static Bson slice(String field, int start, int end) {
    return Projections.slice(field, start, end);
}