I have many documents in a bucket as
{ prop1: value, prop2: value, prop3: value}
But some documents do not have the prop3 field.
How can I retrieve all documents that DO NOT have the prop3 field, using an n1ql query?
The IS MISSING
keyword is your friend here:
SELECT * FROM bucket WHERE prop3 IS MISSING;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With