title: GraphQL Seach Items By Attribute
body: <p>I'm new to graphql and I'm looking to build a query for an existing API (<a href="https://thegraph.com/hosted-service/subgraph/aavegotchi/aavegotchi-core-matic" rel="nofollow noreferrer">link</a>). This Schema has the entity <code>ClaimedToken</code> that has a field called <code>lending</code> which is of type <code>GotchiLending</code> (another object). What I am trying to do, is simply to list all <code>ClaimedTokens</code> based on the <code>borrower</code> of <code>GotchiLending</code> (<code>claimedToken.lending.borrower === &quot;0x081b0ebac365be1d64febdcc66bdb4f14c37813b&quot;</code>).</p>
  <p>Here is what I have tried:</p>
  <ul>
  <li>Put borrower on lending field</li>
  </ul>
  <pre><code>{
    claimedTokens {
      lending(borrower: &quot;0x081b0ebac365be1d64febdcc66bdb4f14c37813b&quot;) {
        borrower
      }
    }
  }
  </code></pre>
  <ul>
  <li>Put borrower on claimedTokens</li>
  </ul>
  <pre><code>{
    claimedTokens(borrower: &quot;0x081b0ebac365be1d64febdcc66bdb4f14c37813b&quot;) {
      lending {
        borrower
      }
    }
  }
  </code></pre>
  <ul>
  <li>Using where</li>
  </ul>
  <pre><code>{
    claimedTokens {
      lending(where: { borrower: &quot;0x081b0ebac365be1d64febdcc66bdb4f14c37813b&quot; }) {
        borrower
      }
    }
  }
  </code></pre>
  <ul>
  <li>Using find</li>
  </ul>
  <pre><code>{
    claimedTokens {
      lending(find: { borrower: &quot;0x081b0ebac365be1d64febdcc66bdb4f14c37813b&quot; }) {
        borrower
      }
    }
  }
  </code></pre>
  <p>Surprisingly, all my queries were ignored and no errors or warnings were raised. Again, I'm a beginner in graphql so I might be missing something obvious.</p>
  <p>Thanks in advance,
  Ernani</p>