Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit aa7e47e

Browse files
committed
chore: update pkg & use jason as absinthe encoder
1 parent 6e7b809 commit aa7e47e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/groupher_server_web/router.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ defmodule GroupherServerWeb.Router do
55
use Plug.ErrorHandler
66
use Sentry.Plug
77

8+
# see https://github.com/sikanhe/apollo-tracing-elixir/issues/26
9+
require Protocol
10+
Protocol.derive(Jason.Encoder, ApolloTracing.Schema)
11+
Protocol.derive(Jason.Encoder, ApolloTracing.Schema.Execution)
12+
813
pipeline :api do
914
plug(:accepts, ["json"])
1015
plug(GroupherServerWeb.Context)
@@ -17,7 +22,7 @@ defmodule GroupherServerWeb.Router do
1722
"/",
1823
Absinthe.Plug.GraphiQL,
1924
schema: GroupherServerWeb.Schema,
20-
# json_codec: Jason,
25+
json_codec: Jason,
2126
pipeline: {ApolloTracing.Pipeline, :plug},
2227
interface: :playground,
2328
context: %{pubsub: GroupherServerWeb.Endpoint}

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ defmodule GroupherServer.Mixfile do
5151
# Type `mix help deps` for examples and options.
5252
defp deps do
5353
[
54-
{:phoenix, "~> 1.4.1"},
55-
{:phoenix_pubsub, "~> 1.1.1"},
54+
{:phoenix, "~> 1.4.9"},
55+
{:phoenix_pubsub, "~> 1.1.2"},
5656
{:phoenix_html, "~> 2.13.3"},
5757
{:ecto_sql, "~> 3.1.2"},
5858
{:phoenix_ecto, "~> 4.0"},

0 commit comments

Comments
 (0)