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

Improving Metadata Query with Enum #325

Open
Atralupus opened this issue Sep 10, 2024 · 0 comments
Open

Improving Metadata Query with Enum #325

Atralupus opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers mimir

Comments

@Atralupus
Copy link
Member

Atralupus commented Sep 10, 2024

We have a lot of collections and their metadata.
Currently, we can query like this:

query {
    metadata(collectionName: "arena") {
        latestBlockIndex
    }
}

We already defined collection names here, but it's not an enum.
I don't have any ideas to solve this problem, but I want to be able to query like this:

query {
    metadata(collectionName: ARENA) {
        latestBlockIndex
    }
}

https://graphql.org/learn/schema/#enumeration-types

@Atralupus Atralupus added enhancement New feature or request good first issue Good for newcomers mimir labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers mimir
Projects
None yet
Development

No branches or pull requests

1 participant