-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for FirstoreDataConverter #40
Comments
Interesting. Sure, I'm open to adding this. The closest thing so far is the |
Yes it will be very interesting, for example encoding / decoding a geo point |
FYI I've started playing around with this here. It seems to fit into the library quite well at least for There's more work to be done but I'm happy to submit a PR once I get to spend a bit more time with it and get it to a good place. |
@goleary Thanks, looks good. I added some notes, once those are fixed it should be good to PR. |
@goleary @nandorojo any updates on this PR? if not, I am happy to work on this feature |
You're welcome to! |
I'm curious if you have thought about adding support for
withConverter
by allowing users of this libary to provide their own type converters?It might enable usage such as this:
where data ends up being
Post[]
andadd
only accepts objects of typePost
(that are then run through the converter)https://firebase.google.com/docs/reference/js/firebase.firestore.FirestoreDataConverter
The text was updated successfully, but these errors were encountered: