For the complete documentation index, see llms.txt. This page is also available as Markdown.

Adding Query Functions

After completing your mutation implementation, it's time to move onto the query schema module.

Update your ./src/query/schema.graphql file:

...
#import { Query, Connection } into Tezos from "w3://ens/tezos.web3api.eth"
#import { Network, CustomConnection, DomainInfo } from "../common/schema.graphql"

type Query {
 ...

type Query {
  resolveAddress(
    network: Network!
    address: String!
    custom: CustomConnection
  ): DomainInfo

  resolveDomain(
    network: Network!
    domain: String!
    custom: CustomConnection
  ): DomainInfo
}

Update your ./src/query/index.ts file:

Last updated