1.0.6 • Published 7 days ago

@adx-studio/firestore-manager v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
7 days ago

Firestore Manager

Create managers for your firestore collections. You can make calls like

const listing = await Listing.find({ title: "Charizard" }, { sort: "desc" });

Setup

import manager from "firestore-manager";

export const Listing = manager<ListingType>({
  db,
  collectionId: "listings",
  _default: {
    id: "",
    title: "",
    quantity: 1,
    price: 0.0,
    description: "",
    createdAt: "",
    updatedAt: "",
  },
});

Usage

.create()

.delete()

.deleteMany()

.find()

Get all listings

const listings = await Listing.find();

.findAll()

.findById()

.findOne()

.findOneAndUpdate()

.findOneOrCreate()

.new()

.save()

.update()

1.0.6

7 days ago

1.0.5

7 days ago

1.0.4

7 days ago

1.0.3

7 days ago

1.0.2

7 days ago

1.0.1

21 days ago

1.0.0

21 days ago