Sha256: 101a2730b72de25cdbb6ad2a4055b566b84cde5a565dbeee0ccb4adebe1fa1a8

Contents?: true

Size: 676 Bytes

Versions: 48

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

module Types
  class MutationType < Ibrain::Types::BaseApiObject
    description 'Define all mutation for client'

    # TODO: remove me
    # Default session_required is true, set false if yout want to skip authenticated
    field :test_authenticated_field, , String, null: false,
                               description: 'An example field added by the generator'

    field :test_field, String, null: false,
                               description: 'An example field added by the generator', session_required: false
    def test_field
      'Hello World'
    end

    def test_authenticated_field
      'Im logged in!'
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ibrain-core-0.4.2 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.0 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.9 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.8 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.7.rc.pre.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.7 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.6.pre.rc.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.6 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.5 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.4 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.3.pre.rc.2 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.3.pre.rc.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.3 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.2.pre.rc.4 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.2.pre.rc.3 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.2.pre.rc lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.2 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.3.0 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt