Skip to content

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

@jrochkind

Description

@jrochkind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions