在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):absinthe-graphql/absinthe_plug开源软件地址(OpenSource Url):https://github.com/absinthe-graphql/absinthe_plug开源编程语言(OpenSource Language):Elixir 94.3%开源软件介绍(OpenSource Introduction):Absinthe.PlugPlug support for Absinthe, the GraphQL toolkit for Elixir. Please see the website at http://absinthe-graphql.org. InstallationInstall from Hex.pm: def deps do
[{:absinthe_plug, "~> 1.5"}]
end Note: Absinthe.Plug requires Elixir 1.10 or higher.
def deps do
[
...,
{:absinthe_plug, "~> 1.5"},
{:jason, "~> 1.0"}
]
end UpgradingSee CHANGELOG for upgrade steps between versions. You may want to look for the specific upgrade guide in the Absinthe documentation. DocumentationSee "Usage," below, for basic usage information and links to specific resources.
Related ProjectsSee the GitHub organization. UsageIn your plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
pass: ["*/*"],
json_decoder: Jason
plug Absinthe.Plug,
schema: MyAppWeb.Schema If you want plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json, Absinthe.Plug.Parser],
pass: ["*/*"],
json_decoder: Jason
forward "/api",
to: Absinthe.Plug,
init_opts: [schema: MyAppWeb.Schema] For more information, see the API documentation for Phoenix.RouterIf you are using Phoenix.Router, Plug.Routerforward "/graphiql",
to: Absinthe.Plug.GraphiQL,
init_opts: [
schema: MyAppWeb.Schema,
interface: :simple
] Phoenix.Routerforward "/graphiql",
Absinthe.Plug.GraphiQL,
schema: MyAppWeb.Schema,
interface: :simple For more information see Phoenix.Router.forward/4. GraphiQLTo add support for a GraphiQL interface, add a configuration for
forward "/graphiql",
to: Absinthe.Plug.GraphiQL,
init_opts: [schema: MyAppWeb.Schema] See the API documentation for CommunityThe project is under constant improvement by a growing list of
contributors, and your feedback is important. Please join us in Slack
( Please remember that all interactions in our official spaces follow our Code of Conduct. ContributingPlease follow contribution guide. LicenseSee LICENSE.md. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论