Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitaa7e47e

Browse files
committed
chore: update pkg & use jason as absinthe encoder
1 parent6e7b809 commitaa7e47e

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
usePlug.ErrorHandler
66
useSentry.Plug
77

8+
# see https://github.com/sikanhe/apollo-tracing-elixir/issues/26
9+
requireProtocol
10+
Protocol.derive(Jason.Encoder,ApolloTracing.Schema)
11+
Protocol.derive(Jason.Encoder,ApolloTracing.Schema.Execution)
12+
813
pipeline:apido
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
defpdepsdo
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)

[8]ページ先頭

©2009-2025 Movatter.jp