在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:maxcoto/graphoid开源软件地址:https://github.com/maxcoto/graphoid开源编程语言:Ruby 91.7%开源软件介绍:Generates a full GraphQL API using introspection of Mongoid or ActiveRecord models. API DodocumentationThe API Documentation that displays how to use the queries and mutations that Graphoid automatically generates. DependencyThis gem depends on the GraphQL gem. Please install that gem first before continuing InstallationAdd this line to your Gemfile: gem 'graphoid' $ bundle install DatabaseCreate the file Graphoid.configure do |config|
config.driver = :mongoid
end UsageYou can determine which models will be visible in the API by including the Graphoid Queries and Mutations concerns class Person
include Graphoid::Queries
include Graphoid::Mutations
end ExamplesYou can find an example that uses ActiveRecord in the Tester AR folder Contributing
Testing$ DRIVER=ar DEBUG=true bundle exec rspec
$ DRIVER=mongo DEBUG=true bundle exec rspec Thank You !!Ryan Yeske for the whole idea and for validating that metaprogramming this was possible. Andres Rafael for working so hard on connecting the gem on the frontend and finding its failures. LicenseThe gem is available as open source under the terms of the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论