I have a problem with Bookshelf, I want use query to columns json type My table have columns 'data' type json, I want get all element with in this columns 'team' = 'PSG'
I test:
collection.query('whereRaw', "data->'team'->>'PSG'");
I have this error
"argument of WHERE must be type boolean, not type text"
Or I test
collection.query('where', "data", "#>", "'{team, PSG}'");
I have this error
"The operator \"#>\" is not permitted"
I think that have a report with https://github.com/tgriesser/bookshelf/issues/550