diff --git a/config/initializers/graphql.rb b/config/initializers/graphql.rb index f0b27dac6..420d53dcf 100644 --- a/config/initializers/graphql.rb +++ b/config/initializers/graphql.rb @@ -1,9 +1,7 @@ API_TYPE_DEFINITIONS = { - User => %I[ id username proposals organization ], Debate => %I[ id title description author_id author created_at comments ], Proposal => %I[ id title description external_url cached_votes_up comments_count hot_score confidence_score created_at summary video_url geozone_id retired_at retired_reason retired_explanation geozone comments public_author ], Comment => %I[ id body user_id user commentable_id ], - Organization => %I[ id name ] } type_creator = GraphQL::TypeCreator.new diff --git a/spec/lib/graphql_spec.rb b/spec/lib/graphql_spec.rb index eed7c6d34..3dbf393b7 100644 --- a/spec/lib/graphql_spec.rb +++ b/spec/lib/graphql_spec.rb @@ -29,6 +29,7 @@ describe ConsulSchema do end it "returns has_one associations" do + pending "Organizations are not being exposed yet" organization = create(:organization) response = execute("{ user(id: #{organization.user_id}) { organization { name } } }") expect(dig(response, 'data.user.organization.name')).to eq(organization.name) @@ -52,6 +53,7 @@ describe ConsulSchema do end it "executes deeply nested queries" do + pending "Organizations are not being exposed yet" org_user = create(:user) organization = create(:organization, user: org_user) org_proposal = create(:proposal, author: org_user)