Add documentation examples for filtering expressions #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello again 👋
Glad you found use from the filtering functionality in my previous PR . This just adds some example uses for the filtering in the docs application you have. Let me know your thoughts when you get a chance.
I'd be curious on your thoughts of some nested filtering functionality too. With this current setup, you can filter on direct values for the requested data model. A neat feature would be something like
/quotes?character_name='Gandalf'
. It would take some hacking, we'd need to figure some functions to cast it (https://github.com/leodinas-hao/mongoose-query-parser#add-custom-casting-functions) but if it would be useful we can give it a shotHappy #hacktoberfest 🎉