[day-03] create user schema

Add user type to represent entity in graphql.
This commit is contained in:
Joao P Dubas 2021-06-24 00:07:58 +00:00
parent b543e241b0
commit 8787973075

View File

@ -0,0 +1,9 @@
defmodule WabanexWeb.Schema.Types.User do
use Absinthe.Schema.Notation
@desc "Logic user representation"
object :user do
field :name, non_null(:string)
field :email, non_null(:string)
end
end