Class: SolidusGraphqlApi::Queries::ProductBySlugQuery
- Inherits:
-
Object
- Object
- SolidusGraphqlApi::Queries::ProductBySlugQuery
- Defined in:
- lib/solidus_graphql_api/queries/product_by_slug_query.rb
Instance Method Summary collapse
Instance Method Details
#call(slug:) ⇒ Object
6 7 8 |
# File 'lib/solidus_graphql_api/queries/product_by_slug_query.rb', line 6 def call(slug:) Spree::Product.find_by slug: slug end |