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

Errors on generation / debugging #1

Open
raiseerco opened this issue Oct 8, 2024 · 2 comments
Open

Errors on generation / debugging #1

raiseerco opened this issue Oct 8, 2024 · 2 comments

Comments

@raiseerco
Copy link

Running npm run dev gives this output:

 ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 9 errors;
      Error 0: Unknown type "GovernorSort". Did you mean "GovernorsSortBy", "Governor", "GovernorInput", "GovernorKind", or "GovernorType"?
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:1:72
      Error 1: Unknown argument "chainIds" on field "Query.governors".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:2:13
      Error 2: Unknown argument "pagination" on field "Query.governors".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:2:34
      Error 3: Unknown argument "sort" on field "Query.governors".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:2:59
      Error 4: Cannot query field "id" on type "PaginatedOutput".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:3:5
      Error 5: Cannot query field "name" on type "PaginatedOutput".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:4:5
      Error 6: Cannot query field "tokens" on type "PaginatedOutput". Did you mean "nodes"?
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:5:5
      Error 7: Cannot query field "proposalStats" on type "PaginatedOutput".
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:10:5
      Error 8: Field "governors" argument "input" of type "GovernorsInput!" is required, but it was not provided.
      at /Users/user/Documents/Repo/tally-api-quickstart/src/CodegenQuery/useGovernors.graphql:2:3

@BowennCAI
Copy link

BowennCAI commented Nov 11, 2024

I think the document and the repo were not updated in time to be consistent with the website's backend data schema. @raiseerco

@raiseerco
Copy link
Author

Indeed, finally what I did is to run an instrospection query to see whatever I need.
Basically this:

{
  __schema {
    types {
      name
    }
  }
}

Hope this helps.

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

2 participants