GraphStore Module
Module
Classes
Interfaces
Functions
Functions
arrayObjecttToFlatArray
► arrayObjecttToFlatArray(snapshot: IFireDatabaseSnapshot, keys: any, allPrimaryKeys: string[]): any[]
Defined in GraphStore.ts:213
Helper function used internally to convert a database complex object to a flat collection of documents
Parameters:
| Param | Type | Description |
|---|---|---|
| snapshot | IFireDatabaseSnapshot | - |
| keys | any | - |
| allPrimaryKeys | string[] | - |
Returns: any[]
flatMap
► flatMap(resultArray: any[], precedingKeys: any, objectToMap: any, allPrimaryKeys: string[], currentKey: number): void
Defined in GraphStore.ts:232
Helper function used by arrayObjecttToFlatArray to recursively navigate the object
Parameters:
| Param | Type | Description |
|---|---|---|
| resultArray | any[] | - |
| precedingKeys | any | - |
| objectToMap | any | - |
| allPrimaryKeys | string[] | - |
| currentKey | number | - |
Returns: void