-
Notifications
You must be signed in to change notification settings - Fork 47
Query on nested Arrays #33
Comments
Hi @klopez0017 They should be designed that way as the docs state the examples of:
What is the response you are receiving? I will take a look at this when I get in. |
Hi @timothymarois, Im getting an empty array. My suspicion is that it doesnt properly read the iteration of the nested array. For example, to be able to read the first item I provided above, I should use
But if i use only the query,
Maybe if we can use something like a wild card in between? Example: |
@klopez0017 I do see what you mean now. Its because it's in an array which doesn't know which to choose from since there is multiple. But still, that is a good point and should be addressed. I do like the functionality of setting One thing to note about querying, at least in current form. It was designed to return the entire document as a whole, using queries to find documents instead of partial data. There are Custom Filters which not sure if it is something you could use in this case, or we could modify that if it gets your results. |
@timothymarois I will have a look on custom filters thank you. I'll try as well to help fix it and make a pull request to check if the Queried item is multi-nested array inside. Below is a partially working code for a multi-nested array. It now successfully returns the first arrays.
|
Hi, I have this saved database with me in this format. As you can see accounts have multiple array elements containing accID, server, expiry, editable, payment, etc..
Whenever I try to use query it gives me no results. Is nested multi array supported at the moment?
The text was updated successfully, but these errors were encountered: