class GraphQL::Field::Resolve::HashKeyResolve
Resolve the field by looking up ‘@hash_key` with `#[]`
def call(obj, args, ctx)
def call(obj, args, ctx) obj[@hash_key] end
def initialize(hash_key)
def initialize(hash_key) @hash_key = hash_key end
Resolve the field by looking up ‘@hash_key` with `#[]`
def call(obj, args, ctx) obj[@hash_key] end
def initialize(hash_key) @hash_key = hash_key end