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

XMLWordPrintableJSON

    • None
    • None

      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
              Reporter:
              Maxime Beugnet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: