Module: Graphiti::ActiveGraph::SideloadResolve
- Included in:
- ResourceProxy
- Defined in:
- lib/graphiti/active_graph/sideload_resolve.rb
Instance Method Summary collapse
Instance Method Details
#initialize(object, resource, query, opts = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/graphiti/active_graph/sideload_resolve.rb', line 3 def initialize(object, resource, query, opts = {}) @object = object @resource = resource @query = query @opts = opts @unpaginated_object = opts[:unpaginated_query].presence || @object return if opts[:preloaded] @object = @resource.around_scoping(@object, @query.hash) { |scope| apply_scoping(scope, opts) } end |
#resolve_sideloads(parents) ⇒ Object
16 17 |
# File 'lib/graphiti/active_graph/sideload_resolve.rb', line 16 def resolve_sideloads(parents) end |