title: GraphQL query based on a specific value of a field
body: <p>I want to be able to retrieve the latest release from GitHub for a specific repo using their GraphQL API. To do that, I need to get the latest release where isDraft and isPrerelease are false. I have managed to get the first part, but cant figure out how to do the "where" part of the query.</p>
  
  <p>Here is the basic query I have gotten (<a href="https://developer.github.com/v4/explorer/" rel="noreferrer">https://developer.github.com/v4/explorer/</a>):</p>
  
  <pre><code>{
    repository(owner: "paolosalvatori", name: "ServiceBusExplorer") {
      releases(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {
        nodes {
          name
          tagName
          resourcePath
          isDraft
          isPrerelease
        }
      }
    }
  }
  </code></pre>
  
  <p>Which returns:</p>
  
  <pre><code>{
    "data": {
      "repository": {
        "releases": {
          "nodes": [
            {
              "name": "3.0.4",
              "tagName": "3.0.4",
              "resourcePath": "/paolosalvatori/ServiceBusExplorer/releases/tag/3.0.4",
              "isDraft": false,
              "isPrerelease": false
            }
          ]
        }
      }
    }
  }
  </code></pre>
  
  <p>I cant seem to find a way to do this. Part of the reason is that I am new to GraphQL (first time trying to do a query) and I am not sure how to frame my question.</p>
  
  <p>Can one only "query" based on those types that support arguments (like repository and releases below)? Seems like there should be a way to specify a filter on the field values.</p>
  
  <p>Repository: <a href="https://developer.github.com/v4/object/repository/" rel="noreferrer">https://developer.github.com/v4/object/repository/</a></p>
  
  <p>Releases: <a href="https://developer.github.com/v4/object/releaseconnection/" rel="noreferrer">https://developer.github.com/v4/object/releaseconnection/</a></p>
  
  <p>Node: <a href="https://developer.github.com/v4/object/release/" rel="noreferrer">https://developer.github.com/v4/object/release/</a></p>