Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expression based cursor field #56

Open
axelson opened this issue Jan 24, 2019 · 2 comments
Open

Expression based cursor field #56

axelson opened this issue Jan 24, 2019 · 2 comments

Comments

@axelson
Copy link

axelson commented Jan 24, 2019

Is it possible to paginate with an expression-based cursor field?

I want to use a custom order by with array_position: https://stackoverflow.com/questions/4088532/custom-order-by-explanation

It looks like currently the cursor_fields have to be an actual field in the schema:

|> Enum.map(fn {field, _} -> Map.get(schema, field) end)

@nikolay-slavov
Copy link

nikolay-slavov commented Mar 1, 2019

Hi @axelson, maybe you are looking for something like this:
#60

@axelson
Copy link
Author

axelson commented Mar 3, 2019

Thanks! Yes that does look like it'll work for what I'm trying to do.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants