0

So I'm trying to learn graphql I've been playing around with the ENS subgraph on the graph

For now I'm just trying to do some simple filtering: I would like to be able to filter by the property name:

{
  domains(name:"cocacola.eth") {
    id
    name
    labelName
    labelhash
  }
}

However this doesn't seem to work

1 Answer 1

1

I don't know if I was looking at an old version of graphql when I tried making that query but when following another online I found I can specify using the where parameter:

{
  domains(where:{name: "cocacola.eth"}) {
    id
    name
    labelName
    labelhash
  }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.