mongodb-js / mongodb-schema

Infer a probabilistic schema for a MongoDB collection.
https://github.com/mongodb-js/mongodb-schema
Apache License 2.0
137 stars 15 forks source link

feat!: update schema path property to be a string array to support field names with dots #191

Closed Anemy closed 1 year ago

Anemy commented 1 year ago

cc @addaleax @lerouxb

This package was likely written before dots were supported in field names, and as a result it would build the path of fields using dots as separators. This pr updates the path property of schema fields to be string arrays so we can support fields with dots in them. Also updated the diagram (with the camelCase changes as well).