Skip to main content
Module

x/obsidian/src/transformResponse.ts>transformResponse

GraphQL, built for Deno - a native GraphQL caching client and server module
Go to Latest
variable transformResponse
import { transformResponse } from "https://deno.land/x/obsidian@v5.0.0/src/transformResponse.ts";

transformResponse Returns a nested object representing an object of references, where the references are hashes in Redis. The responseObject input must:

  1. Contain hashable object(s)
  2. have a first key of 'data', as should all GraphQL response objects
  3. have an inner array of data response objects corresponding to the GraphQL fields

type

(responseObject: any, hashableKeys: Array<string>) => GenericObject