[CSHARP-3718] ProjectionDefinitionBuilder.Slice parameters aren't correct Created: 25/Jun/21  Updated: 31/Mar/22

Status: Backlog
Project: C# Driver
Component/s: Builders
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Eric Rosenquist Assignee: Dmitry Lukyanov (Inactive)
Resolution: Unresolved Votes: 0
Labels: rp-toSched
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Backlog - Core Eng Program Management Team [ 13/Jul/21 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Dmitry Lukyanov (Inactive) [ 28/Jun/21 ]

Hey eric_rosenquist@cysiv.com , I can confirm that this is a bug in our code, we will fix it in a later release. As a current workaround you can specify both values where skip is `0`. Thanks for your report.

Comment by Dmitry Lukyanov (Inactive) [ 25/Jun/21 ]

Hey eric_rosenquist@cysiv.com , thanks for you report, we will check it and come back to you soon.

Generated at Wed Feb 07 21:46:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.