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

Cannot query field "id" on type "token_price". #1270

Open
kw1knode opened this issue Jun 14, 2023 · 2 comments
Open

Cannot query field "id" on type "token_price". #1270

kw1knode opened this issue Jun 14, 2023 · 2 comments

Comments

@kw1knode
Copy link

Chain: cosmos

Prereqs:
bdjuno, cosmos rpc/grpc all working.

bdjuno modules

    chain:
    bech32_prefix: cosmos
    modules:
        - modules
        - messages
        - auth
        - actions
        - pricefeed
        - bank
        - staking
        - distribution
        - gov
        - consensus
        - slashing

pricefeed

pricefeed:
    tokens:
        - name: Atom
          units:
            - denom: uatom
              exponent: 0
            - denom: atom
              exponent: 6
              price_id: cosmos

hasura query
token_price

Recreate Issue

cd /root/big-dipper-2.0-cosmos/apps/web-cosmos

yarn run graphql:codegen

Issue

✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to ./src/graphql/types/general_types.ts
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 1 errors;
      Error 0: Cannot query field "id" on type "token_price".
      at /root/big-dipper-2.0-cosmos/apps/web-cosmos/src/graphql/general/token_price.graphql:3:5
@llwinner
Copy link

llwinner commented Aug 5, 2023

@kw1knode
I have the same problem.
Did you solve the problem?

@oxygene76
Copy link

I have the same problem

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

3 participants