Class: Types::QueryType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/query_type.rb

Instance Method Summary collapse

Instance Method Details

#space(id:) ⇒ Object



18
19
20
# File 'app/graphql/types/query_type.rb', line 18

def space(id:)
  Space.find(id)
end

#spacesObject



22
23
24
# File 'app/graphql/types/query_type.rb', line 22

def spaces
  Space.all
end

#user(id:) ⇒ Object



26
27
28
# File 'app/graphql/types/query_type.rb', line 26

def user(id:)
  User.find(id)
end