big-dipper-2.0-cosmos icon indicating copy to clipboard operation
big-dipper-2.0-cosmos copied to clipboard

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

Open kw1knode opened this issue 1 year ago • 2 comments

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

kw1knode avatar Jun 14 '23 04:06 kw1knode

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

llwinner avatar Aug 05 '23 15:08 llwinner

I have the same problem

oxygene76 avatar Sep 16 '23 14:09 oxygene76