import parseSchemas from './parseSchemas' ; import { mapApi } from './mapApi' ; interface IEntryParams { gapiAsJsonSchema : any ; } export interface Context { resolvers ; queryResolvers ; graphQLTypes ; } export default ( { gapiAsJsonSchema } ) => { const queryResolvers = { } ; const resolvers = { } ; const graphQLTypes = parseSchemas ( gapiAsJsonSchema . schemas ) ; const context = { resolvers , queryResolvers , graphQLTypes } ; return mapApi ( gapiAsJsonSchema , context ) ; } ;