Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何FILTER在 AQL 中执行类似这样的 SQL 示例?
FILTER
SELECT * FROM test WHERE option NOT IN ('A', 'B', 'C')
在 v2.3 及更高版本中,可以执行以下操作:
FOR doc IN test FILTER doc.option NOT IN [ 'A', 'B', 'C' ] RETURN doc
在早期版本中,以下应该可以工作:
FOR doc IN test FILTER ! (doc.option IN [ 'A', 'B', 'C' ]) RETURN doc