Sha256: 1092c5c9c80887c6ddcd89b6e14a86e3a96865201aab46ebee9d4e14d67d4d3d
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true module Platform module Objects X = define_active_record_type(-> { ::X }) do name "X" description "An x on a y." visibility :internal minimum_accepted_scopes ["z"] global_id_field :id interfaces [GraphQL::Relay::Node.interface] field :f1, !Objects::O1, "The x being y." field :f2, !Enums::E1, "x for the y.", property: :field_2 field :f3, Enums::E2, "x for y." field :details, types.String, "Details." field :f4, !Objects::O2, "x as a y inside the z." do resolve ->(obj_x, arguments, context) do Class1.new( a: Class2.new( b: obj_x.b_1, c: obj_x.c_1 ), d: Class3.new( b: obj_x.b_2, c: obj_x.c_3, ) ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.8.0.pre3 | spec/fixtures/upgrader/type_x.original.rb |