module GraphQR
This module represents all the extensions we made to the graphql-ruby library it contains helpers and integrations we need to keep our workflow as simple as possible.
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/graphqr/configuration.rb, line 99 def config @config ||= Configuration.new # rubocop:disable ThreadSafety/InstanceVariableInClassMethod end
Also aliased as: configuration
configure() { |config| ... }
click to toggle source
# File lib/graphqr/configuration.rb, line 95 def configure yield config end
paginator()
click to toggle source
# File lib/graphqr.rb, line 19 def paginator GraphQR.config.paginator end
policy_provider()
click to toggle source
# File lib/graphqr.rb, line 23 def policy_provider GraphQR.config.policy_provider end
use_pagination()
click to toggle source
# File lib/graphqr.rb, line 11 def use_pagination GraphQR.config.use_pagination || true end
use_pagy?()
click to toggle source
# File lib/graphqr.rb, line 27 def use_pagy? paginator == :pagy end
use_pundit?()
click to toggle source
# File lib/graphqr.rb, line 31 def use_pundit? policy_provider == :pundit end