graphql_relay:GraphQL Elixir的中继助手

时间:2021-05-02 06:59:32
【文件属性】:
文件名称:graphql_relay:GraphQL Elixir的中继助手
文件大小:102KB
文件格式:ZIP
更新时间:2021-05-02 06:59:32
Elixir GraphQL.Relay 该库包含帮助程序函数,这些函数使设置与中继兼容的GraphQL模式更加容易。 您不需要此库来创建与Relay兼容的GraphQL模式,只是使它变得更加容易。 为了说明这一点,这是以及与Relay兼容的模式的外观。 该库依赖于库。 安装 添加graphql_relay到您的依赖项列表mix.exs : def deps do [{:graphql_relay, "~> 0.5"}] end 配置 中继需要在服务器端生成的schema.json文件,因此我们需要一种创建和更新此文件的方法。 在config/config.exs添加以下配置: config :graphql_relay , schema_module: MyApp . Schema , schema_json_path: " #{ Path . dirname ( __DIR_
【文件预览】:
graphql_relay-master
----mix.exs(1KB)
----RELEASE.md(1KB)
----priv()
--------repo()
----lib()
--------graphql_relay.ex(796B)
--------graphql()
----examples()
--------todo()
----.travis.yml(91B)
----config()
--------test.exs(356B)
--------prod.exs(15B)
--------config.exs(1KB)
--------dev.exs(15B)
----LICENSE(1KB)
----test()
--------graphql_relay_test.exs(77B)
--------star_wars()
--------test_helper.exs(2KB)
--------graphql()
--------support()
----README.md(4KB)
----mix.lock(3KB)
----.gitignore(41B)
----CHANGELOG.md(737B)

网友评论