Class: GraphitiGraphQL::Federation::ResourceDSL::TypeProxy
- Inherits:
-
Object
- Object
- GraphitiGraphQL::Federation::ResourceDSL::TypeProxy
- Defined in:
- lib/graphiti_graphql/federation/resource_dsl.rb
Instance Method Summary collapse
- #has_many(relationship_name, foreign_key: nil, field: true, filter: true, &blk) ⇒ Object
-
#initialize(caller, type_name) ⇒ TypeProxy
constructor
A new instance of TypeProxy.
Constructor Details
#initialize(caller, type_name) ⇒ TypeProxy
Returns a new instance of TypeProxy.
5 6 7 8 |
# File 'lib/graphiti_graphql/federation/resource_dsl.rb', line 5 def initialize(caller, type_name) @caller = caller @type_name = type_name end |
Instance Method Details
#has_many(relationship_name, foreign_key: nil, field: true, filter: true, &blk) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/graphiti_graphql/federation/resource_dsl.rb', line 10 def has_many( relationship_name, foreign_key: nil, field: true, filter: true, &blk ) @caller.federated_has_many relationship_name, type: @type_name, foreign_key: foreign_key, field: field, filter: filter, &blk end |