-
Notifications
You must be signed in to change notification settings - Fork 27
Filtering documentation needs some clarification and a running example #35
Comments
Agreed and this explanation will be improved. What it meant was that you can only filter by the bottom level parameters is that nested objects in the response cannot be filtered by at the moment. As an example, this is what can be filtered by:
I agree with your suggestion that filtering nested objects by the |
Ah, I'd have called that "properties of the data elements", or top-level (though not quite), but certainly not bottom level. Thanks for the explanation, that cleared things up. |
How does this sound: mod.io has powerful filtering available to assist you when making requests to the API. You can filter on all columns in the parent object only. You cannot apply filters to columns in nested objects, so if a game contains a user object you cannot filter by the username column, but you can filter by the games name since the column resides in the parent object. |
Somewhat better. Though "nested objects" is still slightly fuzzy. I guess an example with comments |
I'll leave it as this for now, but we are working on ways to get better examples in the documentation - to help people better understand it. |
What does
It is important to understand that when using filters in your request, the filters you specify will only be applied to the bottom-level columns.
actually mean?What is the bottom-level, what are columns? Are you talking about the top level entries in the JSON object (unlikely, at least given my tests, though that might just be broken)? Are you talking about the most deeply nested entries in that JSON, and if yes, what if there are multiple entries (with different paths) at the same depth?
It would be nice to be able to specify exactly what one wants to filter. So something like
?name=data.*.id:1234
, so one can do more specific filtering.At the very least some actual test data and examples and responses for those in the documentation would help.
The text was updated successfully, but these errors were encountered: