Greater/Less than comparators for strings #244
ericchernuka
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Hey, @ericchernuka. Thanks for the proposal. How would you implement these new comparators? Simply as I don't like the semantics breach that happens when we handle strings this way, to be honest. I'd much prefer to go with something like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a use case where we're building the ability to navigate backwards with cursor-based pagination. To facilitate sorting, we need a way to do a
where
clause that possibly uses a greater than/less than query against a property. Before I do a PR to add this, I wanted to see if there were prior reasons for not includinggt|gte|lt|lte
for strings in the past.Reference: https://brunoscheufler.com/blog/2022-01-01-paginating-large-ordered-datasets-with-cursor-based-pagination#ordering-with-two-attributes
Beta Was this translation helpful? Give feedback.
All reactions