Search
Preparing search index...
The search index is not available
Typescript + Express + Firestore - API Rest
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
FirestoreRepository
Class FirestoreRepository
Hierarchy
FirestoreRepository
Implements
IFirestoreRepository
Index
Constructors
constructor
Properties
collection
Methods
create
delete
read
All
read
One
update
Constructors
constructor
new
Firestore
Repository
(
db
:
Firestore
, collectionName
:
string
)
:
FirestoreRepository
Parameters
db:
Firestore
collectionName:
string
Returns
FirestoreRepository
Properties
collection
collection
:
CollectionReference
Methods
create
create
(
object
:
DocumentData
)
:
Promise
<
DocumentReference
>
Parameters
object:
DocumentData
Returns
Promise
<
DocumentReference
>
delete
delete
(
id
:
string
)
:
Promise
<
DocumentReference
>
Parameters
id:
string
Returns
Promise
<
DocumentReference
>
read
All
read
All
(
)
:
Promise
<
DocumentReference
[]
>
Returns
Promise
<
DocumentReference
[]
>
read
One
read
One
(
id
:
string
)
:
Promise
<
DocumentReference
>
Parameters
id:
string
Returns
Promise
<
DocumentReference
>
update
update
(
id
:
string
, object
:
DocumentData
)
:
Promise
<
DocumentReference
>
Parameters
id:
string
object:
DocumentData
Returns
Promise
<
DocumentReference
>
Globals
Controller
Example
Example
Controller
Firestore
Repository
constructor
collection
create
delete
read
All
read
One
update
IController
ICustom
Error
IExample
IFirestore
Repository
FIRESTORE_
DB
app
db
key
router
error
Middleware
Generated using
TypeDoc