Annotation Interface AQL


@Retention(RUNTIME) @Target(METHOD) public @interface AQL
Annotation to define a dynamic AQL (ArangoDB Query Language) query for methods in the ArangoDBRepository interface. This annotation enables executing custom AQL queries directly from repository methods, similar to how queries are defined in other JNoSQL repositories. Example usage:

 @AQL("FOR p IN Person RETURN p")
 List<Person> findAll();
 
Parameterized query:

 @AQL("FOR p IN Person FILTER p.name == @name RETURN p")
 List<Person> findByName(@Param("name") String name);
 
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The AQL query string to be executed.
  • Element Details

    • value

      String value
      The AQL query string to be executed.
      Returns:
      the AQL query