[cloud_firestore] Support withConverter
#4286
Unanswered
larssn
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So the Node SDK supports
withConverter
for converting plainDocumentData
into class instances. See this link.The gist is, your references have a
withConverter
function that takes aFirestoreDataConverter<T>
interface, which defines two methods:toFirestore
andfromFirestore
. Should be fairly self explanatory, but if not, check the link.Beta Was this translation helpful? Give feedback.
All reactions