[day-03] expose id in user schema

Use uuid custom scalar to represent the user id.
This commit is contained in:
Joao P Dubas 2021-06-24 00:12:17 +00:00
parent c5612f9398
commit 425c3eafc2

View File

@ -1,8 +1,11 @@
defmodule WabanexWeb.Schema.Types.User do
use Absinthe.Schema.Notation
import_types WabanexWeb.Schema.Types.Custom.UUID4
@desc "Logic user representation"
object :user do
field :id, non_null(:uuid4)
field :name, non_null(:string)
field :email, non_null(:string)
end