Class: Binda::Api::Resolvers::ComponentBySlugResolver
- Inherits:
-
Object
- Object
- Binda::Api::Resolvers::ComponentBySlugResolver
- Defined in:
- app/graphql/binda/api/resolvers/component_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/component_by_slug_resolver.rb', line 2 def call(obj, args, ctx = {}) Binda::Component.find_by! slug: args[:slug] end |