cardano-graphql icon indicating copy to clipboard operation
cardano-graphql copied to clipboard

Error querying stakePools by registrationTransaction

Open astudnev opened this issue 3 years ago • 0 comments

GraphQL

stakePools(where: {registrationTransaction:{hash: {_eq: "841cca81da918feb9fa7257a34630eac95794be712ed3faae6df64f215ce25f2"}}}){
    id
    
    hash
    
    
    
  
    retirements {
      announcedIn{
        hash
      }
    }
    
  }

returns error:

"path": [
        "stakePools"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "stacktrace": [
            "TypeError: Cannot read property 'type' of undefined",
            "    at /app/node_modules/@graphql-tools/utils/index.cjs.js:1329:61",
            "    at Array.forEach (<anonymous>)",
            "    at transformInputValue (/app/node_modules/@graphql-tools/utils/index.cjs.js:1328:28)",
            "    at Object.serializeInputValue (/app/node_modules/@graphql-tools/utils/index.cjs.js:1336:12)",
            "    at /app/node_modules/@graphql-tools/delegate/index.cjs.js:1120:114",
            "    at Array.forEach (<anonymous>)",
            "    at updateArguments (/app/node_modules/@graphql-tools/delegate/index.cjs.js:1116:22)",
            "    at /app/node_modules/@graphql-tools/delegate/index.cjs.js:1087:21",
            "    at Array.forEach (<anonymous>)",
            "    at /app/node_modules/@graphql-tools/delegate/index.cjs.js:1077:43"
          ]

astudnev avatar Nov 19 '21 15:11 astudnev