
If you have a jsonb field in your Active record object and you want some nested value you can use pluck Example: Lets say your Users model has a jsonb attribuite metadata which has a nested key location which in turn has city you can get the value of...
Writing about Software Development, Backend in particular!
Markdown supported · ⌘↵ to post
No responses yet.