ni-firestore-functions
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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'})
}

Readme

Keywords

none

Package Sidebar

Install

npm i ni-firestore-functions

Weekly Downloads

1

Version

0.0.6

License

none

Unpacked Size

206 kB

Total Files

19

Last publish

Collaborators

  • brauliodavid