Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Error following build steps and trying first query #4

Open
xxiled-plastic-cat opened this issue Oct 13, 2022 · 0 comments
Open

Error following build steps and trying first query #4

xxiled-plastic-cat opened this issue Oct 13, 2022 · 0 comments

Comments

@xxiled-plastic-cat
Copy link

xxiled-plastic-cat commented Oct 13, 2022

Hi, I've built the project myself following the quick start guide and also cloned this repo directly. Following codegen, build and docker up, I try to run this query in the playground:

query {
  transactions(first: 5, orderBy: AMOUNT_DESC) {
    nodes {
      id
      blockHeight
      sender
    }
  }
}

I get the following error:

{
  "error": {
    "errors": [
      {
        "message": "Cannot query field \"transactions\" on type \"Query\".",
        "extensions": {
          "code": "GRAPHQL_VALIDATION_FAILED",
          "exception": {
            "stacktrace": [
              "GraphQLError: Cannot query field \"transactions\" on type \"Query\".",
              "    at Object.Field (/usr/local/lib/node_modules/@subql/query/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js:48:31)",
              "    at Object.enter (/usr/local/lib/node_modules/@subql/query/node_modules/graphql/language/visitor.js:323:29)",
              "    at Object.enter (/usr/local/lib/node_modules/@subql/query/node_modules/graphql/utilities/TypeInfo.js:370:25)",
              "    at visit (/usr/local/lib/node_modules/@subql/query/node_modules/graphql/language/visitor.js:243:26)",
              "    at validate (/usr/local/lib/node_modules/@subql/query/node_modules/graphql/validation/validate.js:69:24)",
              "    at validate (/usr/local/lib/node_modules/@subql/query/node_modules/apollo-server-core/dist/requestPipeline.js:186:39)",
              "    at processGraphQLRequest (/usr/local/lib/node_modules/@subql/query/node_modules/apollo-server-core/dist/requestPipeline.js:98:34)",
              "    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
              "    at async processHTTPRequest (/usr/local/lib/node_modules/@subql/query/node_modules/apollo-server-core/dist/runHttpQuery.js:220:30)"
            ]
          }
        }
      }
    ]
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant