Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

More flexible query and order methods, convenience wrappers around postgres operators #181

Open
jrochkind opened this issue Jan 19, 2023 · 0 comments

Comments

@jrochkind
Copy link
Owner

It would be nice to have a methods to create ActiveRecord queries to let you:

  • order by an attr_json json attribute -- including a deeply nested one?
  • create queries for on attr_jsons, including nested ones, with arbitrary operators (like = or != or <=), with type-casting
    • compare again to similar features in jsonb_accessor... but again we need to support nested attributes, and automatic type-casting with known types

I had originally maybe wanted to get this in before attr_json 2, but I ran out of time... and realized when it is added it will not add any backwards incompat, so no need to work on it at a major version boundary.

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

No branches or pull requests

1 participant