ArangoDB:错误 - 1521

ArangoDB : ERROR - 1521

我有一个 "Book" 和 "Information" 的简单集合,由 "InformationOf" 的边连接。

@Data
@Accessors(chain = true)
@Document("books")
@HashIndex(fields = {"title", "authors.name"}, unique = true)
public class Book {
    @Id
    private String id;
    private String title;
    private Collection<Author> authors;
    private Collection<Identifier> identifiers;
    private Timestamp timestamp;
    @Relations(edges = InformationOf.class, lazy = false,maxDepth = 3)
    private Collection<Information> information;
}

@Edge
@Data
@Accessors(chain = true)
public class InformationOf {
    @Id
    private String id;
    @To
    private Book book;
    @From
    private Information information;
}

@Data
@Accessors(chain = true)
@Document(value = "information")
public class Information {
    @Id
    private String id;
    private Collection<String> covers;
    private Map<DescriptionType, Description> descriptions;
}

和简单的存储库

public interface BookRepository extends ArangoRepository<Book>{
    Optional<Book> findOneByTitle(String title);
}

第一次保存工作正常但使用嵌套集合读取 "Information" 抛出异常:

Caused by: com.arangodb.ArangoDBException: Response: 500, Error: 1521 - AQL: collection not known to traversal: 'information'. please add 'WITH information' as the first line in your AQL (while executing)

依赖关系:

  1. SpringBook - 1.5.9
  2. Arangodb-spring-数据 - 1.0.0
  3. Velocypack-module-jdk8 - 1.0.2

这是 arangodb-spring-data 版本 1.0.0 中的错误。

我打开了一个 github issue 并且已经修复它并发布了 1.0.1 版本。