Skip to content

Conversation

shiyasmohd
Copy link
Contributor

@shiyasmohd shiyasmohd commented Sep 3, 2025

Currently to fetch a subgraph's features using the index-node api, only one deployment's data can be queried.
This PR helps to fetch multiple subgraph's features in a single query, similar to indexingStatuses

Example query:

subgraphFeatures(subgraphs: [$deployment]) {
    subgraph
    ...
}

@shiyasmohd shiyasmohd force-pushed the shiyasmohd/subgraph-features-arr branch 2 times, most recently from ba01d82 to 5ec3f8f Compare September 3, 2025 08:35
@shiyasmohd shiyasmohd self-assigned this Sep 3, 2025
@shiyasmohd shiyasmohd changed the title support querying multiple subgraphs' features in single query support querying multiple subgraph's features in single query Sep 3, 2025
@incrypto32 incrypto32 self-requested a review September 11, 2025 14:10
requests: [PublicProofOfIndexingRequest!]!
): [PublicProofOfIndexingResult!]!
subgraphFeatures(subgraphId: String!): SubgraphFeatures!
subgraphFeatures(subgraphs: [String!]!): [SubgraphFeatures!]!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change - existing queries for subgraph features will break after this change. I am not sure how big a deal that is and how many people are using this, but it could be a problem

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

Successfully merging this pull request may close these issues.

2 participants