Class: Binda::Api::Resolvers::BoardBySlugResolver

Inherits:
Object
  • Object
show all
Defined in:
app/graphql/binda/api/resolvers/board_by_slug_resolver.rb

Instance Method Summary collapse

Instance Method Details

#call(obj, args, ctx = {}) ⇒ Object



2
3
4
# File 'app/graphql/binda/api/resolvers/board_by_slug_resolver.rb', line 2

def call(obj, args, ctx = {})
  Binda::Board.find_by! slug: args[:slug]
end