Firestore サブコレクション リファレンスを作成する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firestore サブコレクション リファレンスを作成する
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
C#
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Go
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Java
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Node.js
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
PHP
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Python
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
Ruby
Firestore に対する認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証の設定をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis content demonstrates how to create a reference to a document within a Firestore subcollection, using various programming languages.\u003c/p\u003e\n"],["\u003cp\u003eThe examples show a consistent pattern where a subcollection named "messages" is nested under a "rooms" collection, specifically referencing "message1" within "roomA".\u003c/p\u003e\n"],["\u003cp\u003eEach code sample, in C#, Go, Java, Node.js, PHP, Python, and Ruby, illustrates the specific syntax for establishing this subcollection reference.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Application Default Credentials is a prerequisite for authenticating with Firestore, as per the instructions provided across the different languages.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Firestore Data Model documentation provides further information and context on how the data structure functions.\u003c/p\u003e\n"]]],[],null,[]]