Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

couchbase query returning empty answer

hello im trying to get query from couchbase and getting a blank answer

this is my data :

enter image description here this is my data and its keep going like that enter image description here i cant get any tagnames and im kinda lost so i would be glad to get any help i tryed :

SELECT b.*
FROM mekorot[0] b
WHERE node.kind = 2

and im still getting :

{
 "results": []
}
like image 968
sergio art Avatar asked Apr 26 '26 06:04

sergio art


1 Answers

I don't think IN is doing what you think it should be doing. IN is meant for queries like SELECT * FROM foo WHERE x IN ['array0','array1']. I'm not sure why this query isn't giving you parsing errors, but try this instead:

SELECT b.*
FROM backetname b
WHERE b.node.kind = 2

Here's some screenshots showing it in action:

example document

N1QL query

like image 59
Matthew Groves Avatar answered Apr 30 '26 21:04

Matthew Groves



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!