Sha256: 51a6c5e95805dd79e26004a672fc1f65d849085d6f4380dfe206cd660d0b4a9e
Contents?: true
Size: 332 Bytes
Versions: 2
Compression:
Stored size: 332 Bytes
Contents
module GraphqlGrpc class Resolver def initialize(proxy) @proxy = proxy end attr_reader :proxy def call(_type, field, obj, args, ctx) if obj value = obj[field.name.to_sym] return value.is_a?(Symbol) ? value.to_s : value end proxy.invoke(field, args, ctx) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql_grpc-0.1.6 | lib/graphql_grpc/resolver.rb |
graphql_grpc-0.1.5 | lib/graphql_grpc/resolver.rb |