Releases: thomas4019/mongo-query-to-postgres-jsonb
Update dependencies and fix null handling of $in and $nin
Update dependencies and add option to disable containment
Update dependencies and add browserified script
0.2.13 Add browserify version
Better handling of arrayFields with array values
See issue #14 for details of what was fixed
arrayFields projection fix
There was a bug with projections when using the optional arrayFields argument which caused it not to support projecting the full array. This has now been fixed.
Projecting into arrays with arrayFields
This provides similar support to projections like what is already provided for filtering. If you want to be able to project object fields nested inside of an array in the way mongo supports, you can do this now, but you need to pass in the list dotted paths which are arrays so the query can be properly created.
The arrayFields option can now have full dotted paths
For the arrayFields option, values such as ['garage.cars'] can be passed in to signify that the cars field inside the garage field is an array. Previously, arrayFields only worked at the top level.
ArrayPaths wildcard option
Add support for passing true (as the 3rd parameter to the main function) to mean all paths may potentially be an array.
This is useful for those wanting better array querying support, but don't know which paths may be arrays. Using this option will reduce performance substantially.
See https://docs.mongodb.com/manual/tutorial/query-array-of-documents/