decidim-api/lib/decidim/api/schema.rb in decidim-0.0.2 vs decidim-api/lib/decidim/api/schema.rb in decidim-0.0.3

- old
+ new

@@ -3,8 +3,13 @@ module Api # Main GraphQL schema for decidim's API. Schema = GraphQL::Schema.define do query QueryType mutation MutationType + + resolve_type lambda { |obj, _ctx| + return Decidim::UserType if obj.is_a? Decidim::User + return Decidim::UserGroupType if obj.is_a? Decidim::UserGroup + } end end end