-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bug - Schema names incongruent between actual vs. explorer web UI #109
Comments
As an additional example, the query below doesn't work: query = gql(
"""
query {
SignalTransactions {
id,
blockNumber,
timestamp,
signer,
type,
signal,
tokens,
subgraphDeployment,
withdrawalFees
}
}
"""
) I think most users will try the following due to the WebUI:
The correct schema to use is actually this:
ProposalIf congruency between explorer UI and actual schema is not possible at this point, I strongly recommended making sample queries for 100% of the schema pieces to help guide users around the buggy naming |
@bordumb This is correct because by default
This is currently incorrect, because by default it's expecting you to specify which specific entity you want to query
This is what a correct single query would look:
(of course you will need to replace "0x...." with whatever ID you want to query for, remember to use lowercase strings) Also queries are expected to not be capitalized, so this is incorrect:
While this would be the correct query
(the UI actually autocompletes that) I don't think it's actually "buggy" naming, those are the actual naming conventions for queries for GraphQL, and their counterparts in the GraphQL schema "language" (which are the entities). |
Overview
Below are 2 examples I found where the schema name of a subgraph are incongruent between the actual subgraph (i.e. what can be queried with a connection) vs. what is shown on the explorer web UI.
Impact
Examples
indexers
indexer
indexers
This query will fail
For example, the query below would break, despite it being written to match what is shown on the explorer UI:
This query will pass
transactions
transaction
transactions
This query will fail
This query will pass
Proposal
The text was updated successfully, but these errors were encountered: