Added a pipe delimited notation to handle subdocument arrays.
usage
In collection.yml:
drivers_license_number:
:source: driverLicenses|licenseNumber
:type: TEXT
example
In a subdocument array like this, {... 'driverLicenses': [{... licenseNumber: 1 ...}, {... licenseNumber: 2 ...}, {... licenseNumber: 3 ...}] ... }
mosql will return the active license number, which is the highest indexed license number, 3
Added a pipe delimited notation to handle subdocument arrays. usage In collection.yml:
example In a subdocument array like this, {... 'driverLicenses': [{... licenseNumber: 1 ...}, {... licenseNumber: 2 ...}, {... licenseNumber: 3 ...}] ... } mosql will return the active license number, which is the highest indexed license number, 3