@stoqey/firestore
Version:
NodeJS Firebase Firestore CRUD library
16 lines (15 loc) • 635 B
TypeScript
import BaseFireStore from '.';
import { firestore } from 'firebase-admin';
export declare const addAutoQueries: (name: string, model: BaseFireStore) => {
[x: string]: ((_: any, { limit, order, start }: {
limit: number;
page?: number | undefined;
order: any;
start: Date;
}) => Promise<any>) | ((_: any, { id }: {
id: string;
}) => Promise<firestore.DocumentData | null>);
};
export declare const addAutoMutations: (name: string, model: BaseFireStore) => {
[x: string]: ((_: any, { input }: any, { req }: any) => Promise<any>) | ((_: any, { input }: any) => Promise<boolean>);
};