Method: Graphiti::Runner#jsonapi_render_options

Defined in:
lib/graphiti/runner.rb

#jsonapi_render_optionsObject



50
51
52
53
54
55
56
57
# File 'lib/graphiti/runner.rb', line 50

def jsonapi_render_options
  options = {}
  options.merge!(default_jsonapi_render_options)
  options[:meta] ||= {}
  options[:expose] ||= {}
  options[:expose][:context] = jsonapi_context
  options
end