Skip to content

Support of RIDs in GraphQL #945

Closed
Closed

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.

Activity

  1. changed the title [-]RID in QueryQWL[/-] [+]RID in QueryQL[/+] on Mar 16, 2023
  2. changed the title [-]RID in QueryQL[/-] [+]RID in GraphQL[/+] on Mar 16, 2023
  3. lvca commented on Mar 18, 2023

    @lvca
    Member

    I don't see any reason why @type and @cat cannot be present in the result, together with @rid. Just implemented in the last main branch ;-)

  4. self-assigned this
    on Mar 18, 2023
  5. added this to the 23.3.1 milestone on Mar 18, 2023
  6. gfinger commented on Mar 18, 2023

    @gfinger
    ContributorAuthor

    Sei un programmatore meraviglioso! Grazie per il tuo lavoro e il tuo sostegno!

  7. lvca commented on Mar 18, 2023

    @lvca
    Member

    Grazie!

  8. changed the title [-]RID in GraphQL[/-] [+]Support of RIDs in GraphQL[/+] on Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions