Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Strings containing multiple slashes can be matched with AQL by using the ESCAPE keyword followed by a single slash. This will treat the following character as a literal rather than a special character. For example:

LET myString = "C:/documents/slides/"
FOR doc IN documents
  FILTER doc.path == ESCAPE(myString, '/')  // Escaping the slashes in myString
  RETURN doc

This query will match documents whose path attribute is equal to C:/documents/slides/.