UNPKG

reason-apollo

Version:
29 lines (23 loc) 865 B
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE import * as Caml_option from "bs-platform/lib/es6/caml_option.js"; import * as ApolloCacheInmemory from "apollo-cache-inmemory"; function createIntrospectionFragmentMatcher(data) { return new ApolloCacheInmemory.IntrospectionFragmentMatcher({ introspectionQueryResultData: data }); } function createInMemoryCache(dataIdFromObject, fragmentMatcher, param) { var tmp = { }; if (dataIdFromObject !== undefined) { tmp.dataIdFromObject = Caml_option.valFromOption(dataIdFromObject); } if (fragmentMatcher !== undefined) { tmp.fragmentMatcher = Caml_option.valFromOption(fragmentMatcher); } return new ApolloCacheInmemory.InMemoryCache(tmp); } export { createIntrospectionFragmentMatcher , createInMemoryCache , } /* apollo-cache-inmemory Not a pure module */