graphql-client:一个用于声明,组成和执行GraphQL查询的Ruby库

时间:2021-02-02 03:45:44
【文件属性】:
文件名称:graphql-client:一个用于声明,组成和执行GraphQL查询的Ruby库
文件大小:83KB
文件格式:ZIP
更新时间:2021-02-02 03:45:44
ruby graphql-client graphql RubyRuby graphql客户端 GraphQL Client是一个用于声明,编写和执行GraphQL查询的Ruby库。 用法 安装 将graphql-client添加到您的Gemfile中,然后运行bundle install 。 # Gemfile gem 'graphql-client' 组态 GraphQL客户端从查询的示例配置。 require "graphql/client" require "graphql/client/http" # Star Wars API example wrapper module SWAPI # Configure GraphQL endpoint using the basic HTTP network adapter. HTTP = GraphQL :: Client :: HTTP . new ( "https://example.com/graphql" ) do def headers ( context ) # Optionally set any HTTP headers { "User-Age
【文件预览】:
graphql-client-master
----.gitignore(17B)
----README.md(5KB)
----.rubocop.yml(167B)
----.github()
--------workflows()
----test()
--------test_client_errors.rb(10KB)
--------test_client_fetch.rb(3KB)
--------test_client.rb(23KB)
--------test_http.rb(863B)
--------views()
--------test_erb.rb(2KB)
--------test_definition_variables.rb(8KB)
--------test_rubocop_heredoc.rb(4KB)
--------test_operation_slice.rb(3KB)
--------foo_helper.rb(408B)
--------test_client_schema.rb(2KB)
--------test_object_typename.rb(3KB)
--------test_schema.rb(13KB)
--------test_query_result.rb(27KB)
--------test_client_create_operation.rb(5KB)
--------test_view_module.rb(2KB)
--------test_client_validation.rb(5KB)
--------test_collocated_enforcement.rb(2KB)
--------test_rubocop_overfetch.rb(1KB)
--------test_query_typename.rb(5KB)
--------test_hash_with_indifferent_access.rb(2KB)
----Gemfile(478B)
----LICENSE(1KB)
----graphql-client.gemspec(926B)
----lib()
--------rubocop()
--------graphql()
----Rakefile(217B)
----guides()
--------unimplemented-field-error.md(616B)
--------unfetched-field-error.md(725B)
--------dynamic-query-error.md(1KB)
--------local-queries.md(902B)
--------implicitly-fetched-field-error.md(3KB)
--------over-under-fetching.md(2KB)
--------rails-configuration.md(1KB)
--------helpers.md(1KB)
--------controllers.md(3KB)
--------heredoc.md(815B)
--------collocated-call-sites.md(4KB)
--------handling-errors.md(5KB)
--------remote-queries.md(1KB)
--------templates.md(5KB)

网友评论