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.5.15 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.13 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.12 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.10 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.9 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.8 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.7 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.6 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.5 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.4 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.3 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.2 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.1 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.5.0 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.9 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.8 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.7 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.5 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.4 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt
ibrain-core-0.4.3 lib/generators/ibrain/install/templates/graphql/types/mutation_type.rb.tt