Class: Binda::Api::Resolvers::ComponentsByStructureResolver

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

Instance Method Summary collapse

Instance Method Details

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



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

def call(obj, args, ctx = {})
  Binda::Component.includes(:structure).where(binda_structures: { slug: args[:slug] })
end