INNER CODE UNIT · TypeScript
hashTableSize
open-source-labs/obsidian · src/Obsidian.ts:71
hashTableSize = 16, // default to 16
maxQueryDepth = 0,
customIdentifier = ['__typename', '_id'],
mutationTableMap = {}, // Developer passes in object where keys are add mutations and values are arrays of affected tables
}: ObsidianRouterOptions<T>): Promise<T> {
const router = new Router();
const schema = makeExecutableSchema({ typeDefs, resolvers });
let cache, hashTable;
if (useCache) {
cache = new Cache();
scope.cache = cache;
cache.connect(redisPort, policy, maxmemory);
}
if (persistQueries) {
hashTable = new HashTable(hashTableSize);
}