graphoid:ActiveRecord或Mongoid模型中的Rails即时GraphQL REST-API https:maxiperezc.github.iographoid

时间:2021-02-05 23:20:30
【文件属性】:
文件名称:graphoid:ActiveRecord或Mongoid模型中的Rails即时GraphQL REST-API https:maxiperezc.github.iographoid
文件大小:1.72MB
文件格式:ZIP
更新时间:2021-02-05 23:20:30
ruby rails graphql activerecord mongoid 使用Mongoid或ActiveRecord模型的自省生成完整的GraphQL API。 API文档 ,其中显示了如何使用Graphoid自动生成的查询和变异。 相依性 此gem取决于 。 请先安装该gem,然后再继续 安装 将此行添加到您的Gemfile中: gem 'graphoid' $ bundle install 数据库 创建文件config/initializers/graphoid.rb并配置要在其中使用的数据库(:mongoid或:active_record) Graphoid . configure do | config | config . driver = :

网友评论