Sha256: 62d888a88f39d4c7bea8eba0c5666e247c146f96c37e5e5b9a5898e7fdfe96c4

Contents?: true

Size: 389 Bytes

Versions: 14

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true
module Decidim
  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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
decidim-api-0.1.0 lib/decidim/api/schema.rb
decidim-0.1.0 decidim-api/lib/decidim/api/schema.rb
decidim-api-0.0.8.1 lib/decidim/api/schema.rb
decidim-0.0.8.1 decidim-api/lib/decidim/api/schema.rb
decidim-api-0.0.8 lib/decidim/api/schema.rb
decidim-api-0.0.7 lib/decidim/api/schema.rb
decidim-0.0.7 decidim-api/lib/decidim/api/schema.rb
decidim-api-0.0.6 lib/decidim/api/schema.rb
decidim-0.0.6 decidim-api/lib/decidim/api/schema.rb
decidim-api-0.0.5 lib/decidim/api/schema.rb
decidim-0.0.5 decidim-api/lib/decidim/api/schema.rb
decidim-0.0.4 decidim-api/lib/decidim/api/schema.rb
decidim-api-0.0.3 lib/decidim/api/schema.rb
decidim-0.0.3 decidim-api/lib/decidim/api/schema.rb