Sha256: edfcf3777e28b7c53007c672e1e3cece9574750e42522f931337c5b184a71679
Contents?: true
Size: 497 Bytes
Versions: 45
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module GraphQL class Schema class Field class ScopeExtension < GraphQL::Schema::FieldExtension def after_resolve(value:, context:, **rest) if value.nil? value else ret_type = @field.type.unwrap if ret_type.respond_to?(:scope_items) ret_type.scope_items(value, context) else value end end end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems