INNER CODE UNIT · TypeScript
mutationTableMap
open-source-labs/obsidian · src/Obsidian.ts:74
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);
}
//post
await router.post(path, async (ctx: any) => {