[day-03] create user schema
Add user type to represent entity in graphql.
This commit is contained in:
parent
b543e241b0
commit
8787973075
9
lib/wabanex_web/schema/types/user.ex
Normal file
9
lib/wabanex_web/schema/types/user.ex
Normal 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
|
Loading…
x
Reference in New Issue
Block a user