Spring ArangoRepository AQL and transactions

36 views
Skip to first unread message

eswar

unread,
Jan 22, 2023, 1:07:12 PM1/22/23
to ArangoDB
Hi All,

I am writing multiple AQL statements in a single AQL Query using Spring ArangoRepository.
When I checked if any one of the statements fails , the entire Query is not rollbacked. Is this expected ?
spring arango framework doesn't implicitly add begin/commit/abort.?

Please help me to understand.

import com.arangodb.springframework.annotation.Query;
import com.arangodb.springframework.repository.ArangoRepository;
import org.springframework.data.repository.query.Param

public interface  MyRepository extends ArangoRepository {

    @Query( 
             << with coll1,coll2, .....>
              <<Insert documents>>
              <<expire edges>>
              <<create new edges>>
              ........
    StudentDoc addStudentNode(
            @Param("name") String name,
            @Param("surname") String surname)

Thanks
Eswar
Reply all
Reply to author
Forward
0 new messages