Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL node query #5661

Open
Tracked by #5304
steven-sheehy opened this issue Mar 23, 2023 · 0 comments
Open
Tracked by #5304

GraphQL node query #5661

steven-sheehy opened this issue Mar 23, 2023 · 0 comments
Labels
arkhia Work planned for the Arkhia team enhancement Type: New feature graphql Area: GraphQL

Comments

@steven-sheehy
Copy link
Member

steven-sheehy commented Mar 23, 2023

Problem

As a consumer of the mirror node GraphQL API, I'd like to be able to query for a generic Node by it's opaque ID for purposes of caching or refreshing the data.

Solution

  • Implement the node(id: ID! @Pattern(regexp: "^[a-zA-Z0-9+/=]+$")): Node query
  • Parse the ID into the underlying domain type
  • Delegate query to appropriate service or controller to do the query, passing it the primary key(s) encoded in the ID.

Alternatives

No response

@steven-sheehy steven-sheehy added enhancement Type: New feature graphql Area: GraphQL labels Mar 23, 2023
@steven-sheehy steven-sheehy added the arkhia Work planned for the Arkhia team label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arkhia Work planned for the Arkhia team enhancement Type: New feature graphql Area: GraphQL
Projects
None yet
Development

No branches or pull requests

1 participant