title: How do I get part of a compound index following a where clause?
body: <p>I have my stores defined like so :</p>
  
  <p><code>db.version(DB_VERSION).stores({
    STATE: 'state',
    LOGS: '[timestamp+activity]',
  })</code></p>
  
  <p>This creates a <a href="https://dexie.org/docs/Compound-Index" rel="nofollow noreferrer">compound index</a>, which is accessed later on like this: </p>
  
  <pre><code>await db.LOGS.where('[timestamp+activity]')
      .below(Date.now() - 604800000)
      .delete()
  </code></pre>
  
  <p>However the above snippet gets the <strong>compound</strong>, whereas I only need to pull out <strong>timestamp</strong> to run the <code>below</code> method on. The idea here is to delete indexed items older than a week. </p>