Class: Binda::Api::Resolvers::BoardBySlugResolver
- Inherits:
-
Object
- Object
- Binda::Api::Resolvers::BoardBySlugResolver
- 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 |