Bookshelf ile ilgili bir sorunum var, sütunlar için sorgu kullanmak istiyorum json type Tabloda sütunlar 'data' türü var json, bu elemanın tüm elemanlarını almak istiyorum 'team' = 'PSG'Bookshelf.js json sütunu ile nerede Postgresql
Ben testi:
collection.query('whereRaw', "data->'team'->>'PSG'");
bu hatayı
"argument of WHERE must be type boolean, not type text"
Ya
testi varcollection.query('where', "data", "#>", "'{team, PSG}'");
Ben bir rapor var
"The operator \"#>\" is not permitted"
Bence bu hatayı var https://github.com/tgriesser/bookshelf/issues/550
Aynı sorguyu kullanıyorum, ancak yine de hata alıyorum, "İşlenmemiş reddetme hatası:" foo "yu seçin. *" Foo "dan" attr "@> $ 1 limit $ 2 - operatör mevcut değil: json @> bilinmiyor '. – Vasanth
Lütfen dizne sorgunuzu debug bayrağıyla çalıştırabilir ve tam sorgunuzu gönderebilir misiniz? –