src/lib/sub-collection-query.ts
For Listening to a Document and multiple sub Collections in that Document
Properties |
|
Optional docId |
Type : string
|
Defined in src/lib/sub-collection-query.ts:15
|
Specified Document name if multiple documents in collection is not used |
name |
Type : string
|
Defined in src/lib/sub-collection-query.ts:12
|
the name of the subCollection to be read. |
Optional queryFn |
Type : QueryFn
|
Defined in src/lib/sub-collection-query.ts:29
|
The Collection QueryFn. Example: const query = ref.where('type', '==', 'Book') .where('price', '>' 18.00) .where('price', '<' 100.00) .where('category', '==', 'Fiction') .where('publisher', '==', 'BigPublisher') |
Optional subCollectionQueries |
Type : SubCollectionQuery[]
|
Defined in src/lib/sub-collection-query.ts:33
|
Any SubCollections to be read in the Collection |
import {QueryFn} from '@angular/fire/firestore/interfaces';
/* For Listening to a Doc and multiple sub collections in that doc */
/**
* For Listening to a Document and multiple sub Collections in that Document
*/
export class SubCollectionQuery {
/** the name of the subCollection to be read. */
name: string;
/** Specified Document name if multiple documents in collection is not used */
docId?: string;
/**
*
* The Collection QueryFn.
*
* Example:
* const query = ref.where('type', '==', 'Book')
* .where('price', '>' 18.00)
* .where('price', '<' 100.00)
* .where('category', '==', 'Fiction')
* .where('publisher', '==', 'BigPublisher')
*
*/
queryFn?: QueryFn;
/** Any SubCollections to be read in the Collection */
subCollectionQueries?: SubCollectionQuery[];
}