Method: GraphitiGql::SpecHelper#proxy
- Defined in:
- lib/graphiti_gql/spec_helper.rb
#proxy ⇒ Object
70 71 72 73 74 75 |
# File 'lib/graphiti_gql/spec_helper.rb', line 70 def proxy q = defined?(query) ? query : nil with_pagination = respond_to?(:with_pagination) ? send(:with_pagination) : false opts = { with_pagination: with_pagination } resource.gql(params.merge(fields: fields), ctx, q, opts) end |