본문으로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-firestore
튜토리얼
github.com/Cap-go

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

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

가이드

Firebase Firestore에 대한 튜토리얼

@capgo/capacitor-firebase-firestore 사용 방법

Firebase Cloud Firestore용 Capacitor 플러그인

설치

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

이 플러그인은 다음을 제공합니다.

  • addDocument - __CAPGO_KEEP_0__을 지정한 컬렉션에 새로운 문서를 추가합니다.
  • setDocument - __CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서에 쓰기를 합니다. 만약 문서가 아직 존재하지 않으면 새로 생성됩니다.
  • getDocument - __CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서를 읽습니다.
  • updateDocument - __CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서의 field를 업데이트합니다.

예시 사용

addDocument

__CAPGO_KEEP_0__을 지정한 컬렉션에 새로운 문서를 추가합니다.

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

await FirebaseFirestore.addDocument({} as AddDocumentOptions);

setDocument

__CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서에 쓰기를 합니다. 만약 문서가 아직 존재하지 않으면 새로 생성됩니다.

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

await FirebaseFirestore.setDocument({} as SetDocumentOptions);

getDocument

__CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서를 읽습니다.

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

await FirebaseFirestore.getDocument({} as GetDocumentOptions);

updateDocument

__CAPGO_KEEP_0__에 지정된 참조에 해당하는 문서의 field를 업데이트합니다.

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

await FirebaseFirestore.updateDocument({} as UpdateDocumentOptions);

전체 참조

capgo/capacitor-firebase-firestore를 계속 사용하세요.

__CAPGO_KEEP_0__ 사용 중이시면 capgo/capacitor-firebase-firestore를 사용하여 __CAPGO_KEEP_0__ Plugin Directory와 연결하여 Capgo Plugin Directory에서 Capgo 제품 워크플로우를 확인하세요. Capgo Plugin Directory에서 __CAPGO_KEEP_1__에 의해 개발된 플러그인 Capacitor Plugins by Capgo에서 구현 세부 정보를 확인하세요. Capacitor Plugins by Capgo에서 구현 세부 정보를 확인하세요. __CAPGO_KEEP_0__ 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인 추가 또는 업데이트에서 구현 세부 정보를 확인하세요. Ionic Enterprise 플러그인 대체품 Ionic Enterprise Plugin Alternatives의 제품 워크플로우에 대해, 그리고 Capgo 네이티브 빌드에 대해 for the product workflow in Capgo Native Builds.