<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28456</bug_id>
          
          <creation_ts>2015-04-09 22:00:24 +0000</creation_ts>
          <short_desc>nested keyPath: allow specification which part should be iterated if it&apos;s an array</short_desc>
          <delta_ts>2015-08-10 20:43:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Timm">timm</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>timm</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119415</commentid>
    <comment_count>0</comment_count>
    <who name="Timm">timm</who>
    <bug_when>2015-04-09 22:00:24 +0000</bug_when>
    <thetext>In one of our apps I would like to store objects like this:
{ children: [{ id: &apos;c1&apos; }, { id: &apos;c1&apos; }] }

I would like to be able to create an index to quickly find all parents for child &apos;c1&apos;.

Sadly an index like &quot;children.id&quot; { multiEntry: true } does not work here.

I would propose something like &quot;children[].id&quot; { multiEntry: true } to indicate, that the children property should be iterated, not their id field.

Related discussions:
https://social.msdn.microsoft.com/Forums/en-US/dbf2fd2d-a8ca-4228-8a49-3948d44f7e26/indexeddb-and-complex-keypaths-for-index (where Israel Hilerio (MSFT) mentions this should be discussed for IDB v2)
https://github.com/dfahlander/Dexie.js/issues/86</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122548</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-08-10 20:43:27 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/IndexedDB/issues/35</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>