项目作者: chriskalmar

项目描述 :
⬡ Shyft is a server-side framework for building powerful GraphQL APIs 🚀
高级语言: TypeScript
项目地址: git://github.com/chriskalmar/shyft.git
创建时间: 2018-08-14T06:57:00Z
项目社区:https://github.com/chriskalmar/shyft

开源协议:MIT License

下载






Shyft

Build Status
npm version
codecov

Shyft is a server-side framework for building powerful GraphQL APIs.

Features

  • convert data model into a GraphQL API
  • CRUD query/mutations out of the box
  • flexible extension of mutations
  • sync data model with database and provide migrations
  • complex data fetching with multi-level filters
  • offset/limit and cursor-based pagination
  • extremely dynamic permission engine based on roles and data lookups
  • workflows (finite state machines) with fine-grained control over access and input fields
  • extensible with custom queries and mutations (actions)
  • internationalization (i18n) included
  • generate mock data based on data type or custom functions
  • input validation with any validation framework
  • derived fields
  • hooks (pre- and post-processors)

Install

With yarn:

  1. yarn add shyft

or using npm:

  1. npm install -S shyft

GraphQL is a peer dependency. Install it with:

  1. yarn add graphql

Tests

Run once:

  1. yarn run test

Run in watch mode:

  1. yarn run test-watch

Integration Tests

Run once:

  1. yarn run test-integration

Run in watch mode:

  1. yarn run test-integration-watch