New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

adv-firestore-functions

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adv-firestore-functions

Advanced Firestore Functions tools and indexing

latest
Source
npmnpm
Version
2.0.9
Version published
Weekly downloads
205
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

Advanced Firestore Functions

These are the back-end firestore functions that will allow you to create easy-to-use indexes.

Installation

Install the package into your firebase functions directory.

npm i adv-firestore-functions

Import the necessary functions at the top of your firebase function file:

import { eventExists, fullTextIndex } from 'adv-firestore-functions';

All of these functions are called on an async onWrite firebase firestore function like so:

functions.firestore
    .document('posts/{docId}')
    .onWrite(async (change: any, context: any) => {
//... code
}

The search functions, however, must be put in a callable function like so:

functions.https.onCall(async (q: any) => {

// 'q' is the data coming in

//... code
}

DOCS

  • Searching

  • Counters

  • Aggregation

  • Helper Functions

If you see any errors or have any suggestions, please post an issue on github.

There is more to come as I simplify my firebase functions! See Fireblog.io for more examples (whenever I finally update it)!

Keywords

firestore

FAQs

Package last updated on 16 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts