n1ql是否支持点表示法以允许根据JSON子字段的值过滤结果?
是否应该使用=
或is
运营商?
答案 0 :(得分:2)
The following command can be used to filter on a subfield:
SELECT * from `bucket` WHERE info.category = 'SPECIFIC_CATEGORY';
The documentation explains when the IS
operator should be used:
The IS/IS NOT NULL/MISSING family of operators lets you specify conditions based on the existence (or absence) of attributes in a data set.
You might want run through the N1QL Tutorial.