LoginSignup
1
1

More than 5 years have passed since last update.

Firestoreのインデックス設定をローカルPCへ持ってきて編集して再びアップロードする

Posted at

まず空のディレクトリを作成してその中で下記コマンドを実行。
作成されたfirestore.indexes.jsonにインデックスの設定を書き込む

$ firebase init firestore

下記のコマンドでfirestore.indexes.jsonのみをFirestoreへデプロイする

$ firebase deploy --only firestore:indexes --project PROJECT_NAME

きちんと更新されたかFirestoreのインデックス設定を受信して確認する

$ firebase firestore:indexes --project PROJECT_NAME

終わったらディレクトリを削除して完了

※インデックスの追加は出来たが削除は出来なかった

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1