Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3718

ProjectionDefinitionBuilder.Slice parameters aren't correct

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders

      A single argument to $slice in a projection is interpreted as a limit, not a skip. (seeĀ $slice)

      The ProjectionDefinitionBuilder does not allow the skip parameter to be omitted. Both skip and limit need to be nullable.

      As the API stands now, if you just pass a value for skip, it gets turned into a single argument for $slice, which acts as a limit.

            Assignee:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Reporter:
            eric_rosenquist@cysiv.com Eric Rosenquist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: