UNPKG

graphql-paper

Version:

A flexible in-memory store based on a GraphQL Schema

13 lines (12 loc) 418 B
import { createConnectionProxy } from './create-connection-proxy.mjs'; function expandConnections(schema, store) { for (var typeName in store) { if (Array.isArray(store[typeName])) { store[typeName] = store[typeName].map(document => createConnectionProxy(schema, store, document, { writable: true })); } } } export { expandConnections }; //# sourceMappingURL=expand-connections.mjs.map