$ npm install @graphback/codegen-resolvers
Auto generate database structure,
GraphQL Resolvers and Queries from GraphQL types 🚀
Documentation: https://graphback.dev Repository: https://github.com/aerogear/graphback/
Generator for Graphback Resolver layer. Supports generating resolvers using typescript or javascript languages
import { generateResolvers } from "@graphback/codegen-resolvers"
import { graphQLInputContext } from "@graphback/core"
const inputContext = graphQLInputContext.createModelContext(schemaText, {})
const resolverOptions = {
format: 'ts',
types: {
typesImportStatement: 'import { Resolvers } from "../../generated-types"',
resolverType: 'Resolvers',
}
};
const resolvers = generateResolvers(inputContext, resolverOptions);
© 2010 - cnpmjs.org x YWFE | Home | YWFE