getSubgraphSchema
Retrieve the schema of a specified subgraph using GraphQL introspection. Provide the subgraph ID and choose JSON or text format for the schema output. Enables structured querying of blockchain data.
Instructions
Fetch the schema of a specified subgraph using GraphQL introspection.
Args: subgraphId (str): The ID of the subgraph to query. asText (bool): If True, return schema as GraphQL text; otherwise, return JSON.
Returns: str: Schema in JSON or GraphQL text format, or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
asText | No | ||
subgraphId | Yes |