Access Firestore database not the Realtime database using Javascript

Multi tool use
up vote
0
down vote
favorite
If I use: firebase.initializeApp(firebaseConfig)
and pass it the 6 key value pairs it defaults to using the Realtime database to store data but I need it to use Firestore. How can I change this. Thanks.
javascript

add a comment |
up vote
0
down vote
favorite
If I use: firebase.initializeApp(firebaseConfig)
and pass it the 6 key value pairs it defaults to using the Realtime database to store data but I need it to use Firestore. How can I change this. Thanks.
javascript

Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
If I use: firebase.initializeApp(firebaseConfig)
and pass it the 6 key value pairs it defaults to using the Realtime database to store data but I need it to use Firestore. How can I change this. Thanks.
javascript

If I use: firebase.initializeApp(firebaseConfig)
and pass it the 6 key value pairs it defaults to using the Realtime database to store data but I need it to use Firestore. How can I change this. Thanks.
javascript

javascript

asked Nov 11 at 2:49


Ryan
388
388
Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11
add a comment |
Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11
Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245425%2faccess-firestore-database-not-the-realtime-database-using-javascript%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
6133,l0QOvPR gpWq23 5kd2enUO4
Quickstart to setup firestore
– Socrates Tuas
Nov 11 at 3:10
Defaults to Real Time? Are you calling database() instead of firestore()?
– Philip
Nov 11 at 3:11