메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-firestore
튜토리얼
@capgo/capacitor-firebase-firestore

파이어베이스 파이어스토어

Capacitor 플러그인 - 파이어베이스 클라우드 파이어스토어

Firebase Firestore를 사용하는 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-firebase-firestore

__CAPGO_KEEP_0__ 플러그인

Using @capgo/capacitor-firebase-firestore

Capacitor plugin for Firebase Cloud Firestore.

- 지정된 데이터와 함께 새로운 문서를 컬렉션에 추가합니다.

bun add @capgo/capacitor-firebase-firestore
bunx cap sync

-

  • addDocument -
  • setDocument - 지정된 참조에 의해 참조되는 문서에 대한 쓰기. 문서가 아직 존재하지 않으면 생성됩니다.
  • getDocument - 지정된 참조에 의해 참조되는 문서를 읽습니다.
  • updateDocument - 지정된 참조에 의해 참조되는 문서의 필드에 대한 업데이트.

- 예시 사용

addDocument

- 지정된 데이터와 함께 컬렉션에 새로운 문서를 추가합니다.

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.addDocument({} as AddDocumentOptions);

setDocument

- 지정된 참조에 의해 참조되는 문서에 대한 쓰기. 문서가 아직 존재하지 않으면 생성됩니다.

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.setDocument({} as SetDocumentOptions);

getDocument

- 지정된 참조에 의해 참조되는 문서를 읽습니다.

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.getDocument({} as GetDocumentOptions);

updateDocument

- 지정된 참조에 의해 참조되는 문서의 필드에 대한 업데이트.

import { FirebaseFirestore } from '@capgo/capacitor-firebase-firestore';

await FirebaseFirestore.updateDocument({} as UpdateDocumentOptions);

- 전체 참조

Using @capgo/capacitor-firebase-firestore

만약 당신이 사용 중이라면 Using @capgo/capacitor-firebase-firestore native 플러그인 작업을 계획하기 위해, 그것을 __CAPGO_KEEP_0__ 플러그인 디렉토리와 연결하세요 Capgo 플러그인 디렉토리에서 Capgo 플러그인에 대한 제품 워크플로우 Capgo 플러그인에 의해 __CAPGO_KEEP_1__ Capacitor 플러그인에 의해 Capgo의 구현 세부 사항 for the implementation detail in Capacitor Plugins by Capgo, 플러그인 추가 또는 업데이트의 구현 세부 사항 Ionic Enterprise 플러그인 대체 Ionic Enterprise 플러그인 대체의 제품 워크플로우 Ionic Enterprise 플러그인 대체, Capgo Native Builds for the product workflow in Capgo Native Builds.