1.1.13 • Published 1 year ago

firebase-orm v1.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

How to install

npm i firebase-orm --save

or

yarn add firebase-orm

How to use

find query

Usage:

import fireOrm from "firebase-orm";
import * as admin from "firebase-admin";

admin.initializeApp();
const firestore = admin.firestore();

const getProducts = functions.https.onRequest(async (req, res) => {
    const collection = firestore.collection("products");    
    
    const data = await fireOrm.find(
        collection, // const collection = firestore.collection("products")
        {
            productType: "sales",
            salesPosition: "us"
        }, // FILTER refer filter types
        {
            id: "asc"    
        }, // SORTs refer sort types
        {
            limit: 10, // default is -1 and it will return max 
            page: 1 // default is -1 and it will start from first item
        }
    )
})
1.1.13

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago