Skip to main content
플러그인으로 돌아가기
@capgo/capacitor-firebase-firestore
튜토리얼
@capgo/capacitor-firebase-firestore

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

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

안내서

파이어베이스 클라우드 스토리지에 대한 튜토리얼

capgo/capacitor-파이어베이스-클라우드-스토리지

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

설치

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

이 플러그인이 제공하는 것

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

예시 사용

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

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

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

await FirebaseFirestore.updateDocument({} as UpdateDocumentOptions);

전체 참조

Using @capgo/capacitor-firebase-firestore에서 계속하세요.

Capacitor를 사용 중이라면 Firebase Firestore를 사용하여 @capgo/capacitor-firebase-firestore 자연 플러그인 작업을 계획하고 @__CAPGO_KEEP_0__ Plugin Directory와 연결합니다. @Capgo Plugin Directory의 제품 워크플로우 @Capgo Plugin Directory의 @Capgo 플러그인들 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Ionic Enterprise 플러그인 대체품 Ionic Enterprise 플러그인 대체품의 제품 워크플로우 @__CAPGO_KEEP_0__ 네이티브 빌드 @__CAPGO_KEEP_0__ 네이티브 빌드의 제품 워크플로우 @Capgo Plugin Directory @Capgo Plugins by @__CAPGO_KEEP_1__