title: GraphQL; select all records
body: <p>The service provider for an ERP software recently implemented GraphQL for those customers who wish to use their data beyond the tools they provide.  I was asked to investigate its usefulness in creating digests of this data into more user-friendly data formats (excel, google sheets, ect ... )</p>
  <p>While experimenting with the API using Altair I've run across a situation I don't understand, as I'm approaching the challenge as I would a RDMS:</p>
  <pre><code>{
    __type(name:&quot;Jobs&quot;) {
    fields {
      name
      description
    }
    }
  }
  </code></pre>
  <p>The above returns all the fields for the object 'Jobs'.  For this examples, it returns a list of fields: JobNo, PartNo, PartRev, CustomerID, DueDate</p>
  <p>I wanted to return a list of existing 'JobNo' in the Jobs object, so I tried the query:</p>
  <pre><code>{
      Jobs {
      JobNo DueDate
    }
  }
  </code></pre>
  <p>Which resulted in:</p>
  <pre><code>{
    &quot;errors&quot;: [
      &quot;Expected a non-null value for argument \&quot;JobNo\&quot; on field \&quot;Jobs\&quot;.&quot;
    ]
  }
  </code></pre>
  <p>If I use the following query:</p>
  <pre><code>{
    Jobs(JobNo:&quot;12345&quot;)
    {
      JobNo DueDate
    }
  }
  </code></pre>
  <p>I get results, but its not very useful as I would have to know something about the contents of the data.</p>
  <p>Is there a way of querying for ALL JobNo?  Or is the purpose of GraphQL to know at least some specifics of the data, like the JobNo, before constructing your query?</p>
  <p>Thank you.</p>