* @ignore * @returns >
()
| 43 | * @returns <Promise<Array>> |
| 44 | */ |
| 45 | getQueries() { |
| 46 | const docKeys = Object.keys(this.doc); |
| 47 | const cacheItem = this.cache.getOrCreate(this.getCacheKey(docKeys), () => ({ queries: null })); |
| 48 | |
| 49 | if (cacheItem.queries === null) { |
| 50 | cacheItem.queries = this.createQueries(docKeys); |
| 51 | } |
| 52 | |
| 53 | return cacheItem.queries; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Gets the cache key for this item. |
no test coverage detected