You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
I opened this stackoverflow question, during the course of which I thought/realized the problem might be in this nativescript-plugin?
This is the code that retrieves the data: return query.get() .then(querySnapshot => { querySnapshot.forEach(rec => { let availabilityRec = rec.data(); console.log("existing availabilityRec() => " + JSON.stringify(availabilityRec));
A breakpoint in Chrome DevTools on that console.log() line reveals availabilityRec.theDate property to be a string.
What should I be doing to have this query return theDate property as a Date object?
The text was updated successfully, but these errors were encountered:
While working on the plugin I noticed something similar on Android (didn't check iOS yet). The reason is the plugin is using Google's Gson library to serialize Java to JSON and the result is a String.
I could fix that with a Gson Type Adapter, but I may have to resort to manual conversion anyway because the Firestore reference type isn't compatible with Gson.
I opened this stackoverflow question, during the course of which I thought/realized the problem might be in this nativescript-plugin?
This is the code that retrieves the data:
return query.get() .then(querySnapshot => { querySnapshot.forEach(rec => { let availabilityRec = rec.data(); console.log("existing availabilityRec() => " + JSON.stringify(availabilityRec));
A breakpoint in Chrome DevTools on that console.log() line reveals availabilityRec.theDate property to be a string.
What should I be doing to have this query return theDate property as a Date object?
The text was updated successfully, but these errors were encountered: