Skip to content

Commit

Permalink
Add note about using the subgraph via ENSjs (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
gskril authored Apr 16, 2024
1 parent 6576baf commit bb2c9e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/web/enumerate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ It is generally recommended to allow users to input a name using an [input box](

The [ENS subgraph](/web/subgraph) indexes all events from relevant smart contracts and exposes them via a GraphQL endpoint. Note that addresses in filters must be lowercased.

ENSjs makes it easy to run common queries on the subgraph with strong type safety. Docs can be found [here](https://github.com/ensdomains/ensjs-v3/tree/main/docs/subgraph).

```graphql {{ title: 'GraphQL', language: 'gql', variant: 'gql', link: "https://thegraph.com/hosted-service/subgraph/ensdomains/ens" }}
{
domains(where: { owner: "0x225f137127d9067788314bc7fcc1f36746a3c3b5" }) {
Expand Down

0 comments on commit bb2c9e5

Please sign in to comment.