• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

yahoohung/loopback-graphql-server: Combine the powers of GraphQL with the backen ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

yahoohung/loopback-graphql-server

开源软件地址(OpenSource Url):

https://github.com/yahoohung/loopback-graphql-server

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

A Reply based GraphQL Server for Loopback

Combine the powers of GraphQL with the backend of Loopback to automatically generate GraphQL endpoints based on Loopback Schema.

Installation

npm i loopback-graphql-server -S

Add the loopback-graphql-server component to the server/component-config.json:

"loopback-graphql-server": {
  "path": "/graphql",
  "graphiqlPath": "/graphiql",
  "modelMutationGroups": false,
  "modelQueryGroups": true
}

Requests will be posted to path path. (Default: /graphql);

Graphiql is available on graphiqlPath path. (Default: /graphiql);

Starter

(https://github.com/yahoohung/loopback-graphql-starter)

ACL and role mapping

  • Auto on/off access control
  • Enable loopback based ACL configuration

Access token

  • Accepts AccessToken for authenticated API calls
  • Get access token in operation hooks

Queries

  • node query to fetch single entity by ID
  • Filter support for where with operators(https://loopback.io/doc/en/lb3/Where-filter.html) and order filters on queries
  • Support for relations and querying related data
  • Graphql Connections support for listed data
  • Data pagination support by using navtive loopback function (limit, offset)
  • Graphql Pagination (first, last, before, after)
  • Remote methods integration
  • Display total count number
  • Allow to select single level or nested schema

Mutations

  • Single level schema structure
  • Maps all post, put, patch and delete methods to mutations
  • Remote methods integration

Subscriptions

  • Deprecated

Other Features

Loopback Types

  • Any
  • Array
  • Boolean
  • Buffer
  • Date
  • GeoPoint
  • Null
  • Number
  • Object
  • String

Loopback Relations

  • BelongsTo
  • HasOne
  • HasMany
  • HasManyThrough
  • HasAndBelongsToMany
  • Polymorphic
  • EmbedsOne
  • EmbedsMany
  • ReferencesMany

Todo

  • File uploads

Inspiration

This repository originally started as a fork of the loopback-graphql project by Tallyb and the loopback-graphql-relay by BlueEastCode. I have fixed many bugs and tested on enterprise environment. This version is ready for production use.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap