title: How to get all documents from a collection in FaunaDB?
body: <p>I already have an answer:</p>
  
  <pre><code>const faunadb = require('faunadb')
  const q = faunadb.query
  
  exports.handler = async (event, context) =&gt; {
    const client = new faunadb.Client({
      secret: process.env.FAUNADB_SERVER_SECRET
    }) 
  
    try {  
      // Getting the refs with a first query
      let refs = await client.query(q.Paginate(q.Match(q.Index('skus'))))
      // Forging a second query with the retrieved refs
      const bigQuery = refs.data.map((ref) =&gt; q.Get(ref))
      // Sending over that second query
      let allDocuments = await client.query(bigQuery)
      // All my documents are here!
      console.log('@allDocuments: ', allDocuments);
      //...
    } catch (err) {
      // ...
    }
  }
  </code></pre>
  
  <p>But I find it unsatisfying because I'm making 2 queries for what seems like one the most trivial DB call. It seems inefficient and wordy to me.</p>
  
  <p>As I'm just learning about FaunaDB, there's probably something I don't grasp here.
  My question could be split into 3:</p>
  
  <ul>
  <li>Can I query for all documents in a single call?</li>
  <li>If not, why not? What's the logic behind such a design?</li>
  <li>Could I make such a query without an index?</li>
  </ul>