INNER CODE UNIT · TypeScript

persistQueries

open-source-labs/obsidian · src/Obsidian.ts:70

  persistQueries = false, // default to false
  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);
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…