Comments (5)
Hi @185driver, the error with disappear if you add this code to your app. Remember to replace firestore if you change the way you declare firestore.
const firestore = new Firestore();
const settings = {timestampsInSnapshots: true};
firestore.settings(settings);
from firestore-import-export.
Thanks for the heads up. I do already have that code in my apps that use Firestore. In this particular case, I'm seeing it when using export.js
by itself with my service-key.json file. Am I missing something?
from firestore-import-export.
Hi @185driver, can you take a snapshot of what you are doing and the warning if it is possible?
from firestore-import-export.
I fixed it. Both import.js
and export.js
(lines 14 and 13, respectively) contain const db = admin.firestore();
By adding db.settings({ timestampsInSnapshots: true });
on the next line of both scripts, the Firestore warning message is successfully suppressed.
My suggestion is to add db.settings({ timestampsInSnapshots: true });
to both of your example scripts so as to better support the more recent versions of Firestore.
Again, thanks for this helpful plugin.
from firestore-import-export.
Thanks, @185driver, you're right. It depends on how we initiated the firebase app. I will update the scripts.
from firestore-import-export.
Related Issues (20)
- Can't import HOT 1
- Where the file is saved? HOT 1
- Auto generate firestore document ID HOT 1
- Timestamps not being properly handled? HOT 1
- the function will terminate if one of the subcollection is empty HOT 1
- sync like feature? HOT 3
- Not all the data-collections are saved recursively ?
- There are two Timestamp fields in documents and importing the collection only handling first field. HOT 2
- How to import Firestore Collection's Documents with List of Map having Timestamp fields? HOT 2
- Better "timestamp" handling HOT 1
- auto-id? HOT 1
- Import customers, workers and categories to firestore HOT 3
- Is it possible? [InitializeApp] without 'databaseURL' HOT 1
- Cannot find module './serviceAccountKey.json' HOT 2
- Error: Failed to load gRPC binary module because it was not installed for the current system HOT 1
- Use a value from key-value pair to be the doc id HOT 3
- Function name mispelled HOT 1
- timestamp HOT 1
- When working with big data, it gives an error. Deadline Exceeded
- How to import data as subcollection not as a map HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firestore-import-export.