Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support of RIDs in GraphQL #945

Description

@gfinger

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions