ioxiocom / firedantic

Database models for Firestore using Pydantic base models.
BSD 3-Clause "New" or "Revised" License
43 stars 14 forks source link

Support for custom document IDs #25

Closed lietu closed 3 years ago

lietu commented 3 years ago

Increases compatibility with existing datasets, e.g. in some cases it has been beneficial to store the document ID both as the "key" and in the data properties.

This allows both overriding the document ID to use a field other than id, and to not crash when there is another id or similar in the data.

joakimnordling commented 3 years ago

LGTM