How do I default sort by `metadata ->> 'CreatedDate'?
actions do read :read do prepare build(sort: [expr(fragment("metadata->>'CreatedTime' DESC"))]) # <-- How do I do this?! filter expr(isproject == true) end end
actions do read :read do prepare build(sort: [expr(fragment("metadata->>'CreatedTime' DESC"))]) # <-- How do I do this?! filter expr(isproject == true) end end
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.