Imagine a collection or entity selection populated with objects like:

{

id: "some string",

fields: [

{i:0, name:value1},

{i:1, name:value2},

{i:2, name:value3},

...

]

}


I want to find collection elements by searching for 'fields[1].name' =
someValue.
That is, only matches on the second element.

I thought the query string would be:

$queryString:="fields[1].name = :1"


But this throws an error:

Array element reference must be a letter in the object path: fields[1].


The query works without attempting to limit it to the particular collection
index.
What's the correct syntax for this kind of query?

Thanks!

-- 
Kirk Brooks
San Francisco, CA
=======================

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to