Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4054

Aggregation builder in Java - $limit takes an integer, not a long

      The MongoDB Java sync driver limit stage takes an integer in param and not a long.

      So below it should be `limit(3)` instead of `limit(3L)`.

      Else it doesn't compile in Java.

      You don't have to take my word for it  !

      https://mongodb.github.io/mongo-java-driver/3.12/javadoc/com/mongodb/client/model/Aggregates.html#limit(int)

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            maxime.beugnet@mongodb.com Maxime Beugnet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: