![]() forward "/graphiql", to :, init_opts : def graphiql_socket_url ( conn ) do conn. Note that you may have to clean up your existing workspace by clicking the trashcan icon in order to see the newly set default headers. You can optionally provide default headers if the advanced interface (GraphiQL Workspace) is selected. See AbsinthePlugCache.Plug for the other options. :playground will serve the GraphQL Playground interface from Graphcool.:simple will serve the original GraphiQL interface from Facebook.:advanced (default) will serve the GraphiQL Workspace interface from Oleg Ilyenko.The GraphiQL interface can be switched using the :interface option. forward "/graphiql", to :, init_opts : ![]() ![]() Use the "simple" interface (original GraphiQL) instead: forward "/graphiql", to :, init_opts : įinally there is also support for GraphiQL Playground For serialized results, you'll need an IGraphQLSerializer implementation. env = :dev do forward "/graphiql", to :, init_opts : end This is the main package, the heart of the repository in which you can find all the necessary classes for GraphQL request processing. GraphiQL is an in-browser tool for writing, validating, and testing GraphQL queries. You need to pass the :jsoncodec option to Absinthe.Plug plug Absinthe.Plug, schema: MyApp.Schema, jsoncodec: Jason When used in phoenix router: forward '/api', to: Absinthe.Plug, initopts: schema: MyApp. If you visited the GraphQL endpoint in a browser window, you’ll find yourself in GraphiQL. Serve the GraphiQL "advanced" interface at /graphiql, but only inĭevelopment: if Mix. Since you applied the graphiql option as true to the GraphQL middleware, you have access to the GraphiQL integrated development environment (IDE). Settings View Source (absinthe_plug_cache v1.5.9)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |