Is it somehow possible to make a simple query in graphdsl return the @Rid, @type and @cat fields of a document?
I see that it is possible to request the @Rid when executing a query like:
{bookByAuthor(name: "Thomas Mann") {id @rid}}
But this has certain disadvantages:
- this query only returns the @Rid, if not all other fields of the type are specified
- there is no similar specification for @type
- it is not possible to return the @Rid as "@Rid", because the "@" is not allowed in the name of a query field.
Another issue is that I did not manage to specify an @Rid field in a type definition like:
type Book {
rid:ID @rid
title:String
authors:[Person] @relationship(type:"AuthorOf", direction:IN)
}
The queries that result in a Book return a field rid, but this is always 0.
Is it somehow possible to make a simple query in graphdsl return the @Rid, @type and @cat fields of a document?
I see that it is possible to request the @Rid when executing a query like:
But this has certain disadvantages:
Another issue is that I did not manage to specify an @Rid field in a type definition like:
The queries that result in a Book return a field rid, but this is always 0.