<p>Are you using the <strong>hasura console</strong> or the <strong>apollo graphql console</strong>?</p>
<p>That query won't be available through the hasura console since paymentAddresses is not a postgres table that hasura directly binds to. The apollo graphql server actually queries hasura, transforms the data and then returns it. You can see <a href="https://github.com/input-output-hk/cardano-graphql/blob/master/packages/api-cardano-db-hasura/src/executableSchema.ts" rel="nofollow noreferrer">here</a> that payment addresses calls the <code>getPaymentAddressSummary</code> function on the <a href="https://github.com/input-output-hk/cardano-graphql/blob/master/packages/api-cardano-db-hasura/src/HasuraClient.ts" rel="nofollow noreferrer">hasura client</a>.</p>

CC BY-SA 4.0
2022-04-05T16:53:30.477Z
I just now realized the difference between the two consoles. Thanks. All works when entering it in the correct console.
Johano Fierra
CC BY-SA 4.0
2022-04-05T04:32:36.233Z
2022-04-05T04:32:36.233Z
adjuric
<p>I found this github issue: <a href="https://github.com/input-output-hk/cardano-graphql/issues/507" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-graphql/issues/507</a> discussing how to get assets of an address at a certain block using cardano-graphql / Hasura.</p>
<p>When I run the &quot;SDL Version&quot; of the query, as mentioned in the github issue, on the referenced page (<a href="https://graphql-api.mainnet.dandelion.link/" rel="nofollow noreferrer">https://graphql-api.mainnet.dandelion.link/</a>), it works just fine.</p>
<p>When I try the same query on my cardano-graphql stack in Hasura, I get this error message:</p>
<blockquote>
<p>field &quot;paymentAddresses&quot; not found in type: 'query_root'</p>
</blockquote>
<p>I searched for similar errors, and it seems to have to do with permissions, but I can't figure out which permissions are missing.</p>

<cardano-graphql>
Cardano-graphql / Hasura - not found in type: 'query_root'
# Cardano-graphql / Hasura - not found in type: 'query_root'

(Asked by: username_0 on 2022-03-30)

I found this github issue: <https://github.com/input-output-hk/cardano-graphql/issues/507> discussing how to get assets of an address at a certain block using cardano-graphql / Hasura.

When I run the "SDL Version" of the query, as mentioned in the github issue, on the referenced page (<https://graphql-api.mainnet.dandelion.link/>), it works just fine.

When I try the same query on my cardano-graphql stack in Hasura, I get this error message:

> field "paymentAddresses" not found in type: 'query\_root'

I searched for similar errors, and it seems to have to do with permissions, but I can't figure out which permissions are missing.

**Tags:** cardano-graphql

---

## 1 answers

### Answer by username_1 on 2022-04-05. Score: 1 | Accepted answer

Are you using the **hasura console** or the **apollo graphql console**?

That query won't be available through the hasura console since paymentAddresses is not a postgres table that hasura directly binds to. The apollo graphql server actually queries hasura, transforms the data and then returns it. You can see [here](https://github.com/input-output-hk/cardano-graphql/blob/master/packages/api-cardano-db-hasura/src/executableSchema.ts) that payment addresses calls the `getPaymentAddressSummary` function on the [hasura client](https://github.com/input-output-hk/cardano-graphql/blob/master/packages/api-cardano-db-hasura/src/HasuraClient.ts).

> **Comments:**
> **username_0**: I just now realized the difference between the two consoles. Thanks. All works when entering it in the correct console.  

---

