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 was archived by the owner on Apr 4, 2023. It is now read-only.
During plugin installation you'll be prompted to use either Firestore or the default DB.
5
5
6
-
In case you're upgrading and you have the `firebase.nativescript.json` file in your project root,
7
-
you can edit it and add: `"firestore": true`. Then do `rm -rf platforms/ios && rm -rf platforms/android && rm -rf node_modules && npm i`.
6
+
In case you're upgrading and you have the `firebase.nativescript.json` file in your project root, edit it and add: `"firestore": true`. Then do `rm -rf platforms/ios && rm -rf platforms/android && rm -rf node_modules && npm i`.
8
7
9
8
## Functions
10
9
All of these are 100% compatible with the Firestore Web API to make it easy to share code between web and native, and you can
11
10
refer to the [Firestore web api docs](https://firebase.google.com/docs/firestore/data-model) (make sure to look at the 'WEB' tab of those code samples).
12
11
13
-
> The plugin will take care of serializing JSON data to and from native data structures.
14
-
15
12
### `init` / `initializeApp`
16
13
By default Firestore on iOS and Android persists data locally for offline usage (web doesn't by default, and the regular Firebase DB doesn't either on any platform).
17
14
If you don't like that awesome feature, you can pass `persist: false` to the [`init` function](../README.md#init).
@@ -27,7 +24,7 @@ firebase.initializeApp({
27
24
```
28
25
29
26
### `collection`
30
-
A 'collection' is at the root of any Firestore interaction. Data is stored as 'documents' in a 'collection'.
27
+
A 'collection' is at the root of any Firestore interaction. Data is stored as a 'document' inside a collection.
0 commit comments