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

Metadata Entity both singular & plural #256

Closed
Data-Nexus opened this issue Jan 25, 2024 · 4 comments
Closed

Metadata Entity both singular & plural #256

Data-Nexus opened this issue Jan 25, 2024 · 4 comments
Assignees

Comments

@Data-Nexus
Copy link

When attempting to query the subgraphMetadata and subgraphVersionMetadata I get the normal fields for searching a list of entities - first, where etc. Then when running the query I get an error that I didn't provide an id as though I were attempting to select from a singular entity.

This is likely because of the plural of metadata is probably also metadata. We've run into this with file data sources and went with "meta" which allows us to use "metas", but it may be something that can be solved in the schema dictionary.

{
  subgraphMetadata(first: 10) {
    id
  }
}
@abhayait
Copy link

We are also facing the same issue while querying subgraphMetadata and subgraphVersionMetadata

@juanmardefago
Copy link
Collaborator

We'll be working and releasing a fix for this during this week

@juanmardefago
Copy link
Collaborator

PR for this: #261
Given that this contains a breaking change, the release for this will take slightly more time, due to the change requiring a public announcement and a rollout procedure.

As part of the rollout procedure, it'll be live on staging for some time before it hits prod, so anyone interested in getting the fix early can use the staging subgraphs on hosted service for it.

As a recap, these are the staging subgraphs for mainnet and arbitrum one:

@juanmardefago juanmardefago self-assigned this Jan 31, 2024
@juanmardefago
Copy link
Collaborator

This has been merged and it's gonna be released in production endpoints tomorrow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants