Skip to content

Commit

Permalink
Fix node/endpoint ID! | ID mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
abshierjoel committed Oct 6, 2021
1 parent 2fd3b34 commit 48be2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gql_preferences_web/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule UserPreferencesWeb.Schema do

query do
field :user, :user do
arg(:id, non_null(:id))
arg(:id, :id)
resolve(&Resolvers.Users.get_user_by_id/3)
end

Expand Down Expand Up @@ -89,7 +89,7 @@ defmodule UserPreferencesWeb.Schema do
end

node object(:user) do
field :id, :id
field :id, non_null(:id)
field :name, :string
field :email, :string

Expand Down

0 comments on commit 48be2a2

Please sign in to comment.