0.0.6 • Published 3 years ago

ni-firestore-functions v0.0.6

Weekly downloads
21
License
-
Repository
github
Last release
3 years ago

NiFirestoreFunctions

Simple functions for angular to query and update dollections and documents in Firestore database from Firebase.

Requirements

This library requires packages bellow to be installed:

npm i firebase

npm i @angular/fire

import the NiFirestoreFunctions module

import { NiFirestoreFunctions } from 'ni-firestore-functions';

Example Use

import { NiFirestoreService } from 'ni-firestore-functions';

constructor(
    private firestoreService: NiFirestoreService,
) { }

ngOnInit() {
    //Get a dollection
    this.firestoreService.getCollection({collection: 'documentation'})

    //Get a document
    this.firestoreService.getDoc({path: '/books/book_id'})
}
0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago