graphback
Auto generate resolvers on top of the graphql and database of your choice
Last updated 2 days ago by aerogear-ci .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install graphback 
SYNC missed versions from official npm registry.

Graphback


Auto generate database structure,
GraphQL Resolvers and Queries from GraphQL types ????

Motivation

Graphback helps you to kickstart your experience with any existing GraphQL implementation by generating backend and client side CRUD layer using your GraphQL data model.

Documentation: https://graphback.dev

Repository: https://github.com/aerogear/graphback/

Graphback usage

Graphback package provides programatic API for the Graphback ecosystem. In most of the cases you can use graphback by utilizing graphback-cli package that will expose all useful commands and cover most of the use cases.

Graphback package provides two ways to initialize entire ecosystem from the code

  • GraphbackRuntime
  • GraphbackGenerator

GraphbackGenerator

Graphback generator can be used to initialize Graphback plugins that will transform schema and generate source code. Graphback Generator will utilize GraphQL-Config with underlying plugins

  const config = await loadConfig({
    rootDir: process.cwd(),
    extensions: [graphbackConfigExtension]
  });
  const project = config.getProject('default')
  const graphbackConfig = project.extension('graphback');

  const generator = new GraphbackGenerator(schemaDocument, graphbackConfig)
  generator.generateSourceCode();

For full usage please check: https://github.com/aerogear/graphback/blob/master/packages/graphback-cli/src/components/generate.ts#L42-L43

Graphback Runtime

Runtime class allows to initialize Graphback CRUD layer without code generation. All resolvers and schema are created in-memory

For full usage and examples please check runtime example application https://github.com/aerogear/graphback/tree/master/templates/ts-apollo-runtime-backend

Current Tags

  • 0.10.0-rc2                                ...           dev (4 months ago)
  • 0.11.3                                ...           latest (2 days ago)
  • 0.11.0-rc6                                ...           next (20 days ago)

43 Versions

  • 0.11.3                                ...           2 days ago
  • 0.11.2                                ...           18 days ago
  • 0.11.1                                ...           19 days ago
  • 0.11.0                                ...           20 days ago
  • 0.11.0-rc6                                ...           20 days ago
  • 0.11.0-rc5                                ...           a month ago
  • 0.11.0-rc4                                ...           a month ago
  • 0.11.0-rc3                                ...           a month ago
  • 0.11.0-rc2                                ...           a month ago
  • 0.11.0-dev3                                ...           a month ago
  • 0.11.0-dev2                                ...           a month ago
  • 0.11.0-rc1                                ...           a month ago
  • 0.11.0-alpha1                                ...           a month ago
  • 0.10.2                                ...           3 months ago
  • 0.10.1                                ...           3 months ago
  • 0.10.0                                ...           3 months ago
  • 0.10.0-rc3                                ...           3 months ago
  • 0.10.0-rc2                                ...           4 months ago
  • 0.10.0-dev2                                ...           4 months ago
  • 0.9.6                                ...           5 months ago
  • 0.9.5                                ...           5 months ago
  • 0.10.0-dev1                                ...           5 months ago
  • 0.9.4                                ...           5 months ago
  • 0.9.3                                ...           5 months ago
  • 0.9.2                                ...           6 months ago
  • 0.9.1                                ...           6 months ago
  • 0.9.0                                ...           6 months ago
  • 0.8.3                                ...           7 months ago
  • 0.8.2                                ...           7 months ago
  • 0.8.1                                ...           7 months ago
  • 0.8.0                                ...           7 months ago
  • 0.7.2                                ...           7 months ago
  • 0.7.1                                ...           7 months ago
  • 0.7.0                                ...           8 months ago
  • 0.6.0                                ...           8 months ago
  • 0.5.0                                ...           8 months ago
  • 0.4.0                                ...           8 months ago
  • 0.3.2                                ...           8 months ago
  • 0.3.1                                ...           8 months ago
  • 0.3.0                                ...           8 months ago
  • 0.2.0                                ...           10 months ago
  • 0.1.0                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Downloads
Today 0
This Week 287
This Month 1,527
Last Day 55
Last Week 83
Last Month 1,109
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |