Sha256: 3267179a539fb5f564fb56491de8c2e1a07bc081c7d6ef50ddea7ec93f99fc6c

Contents?: true

Size: 427 Bytes

Versions: 12

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Types
  class QueryType < Types::BaseObject
    field :user, resolver: Resolvers::UserShow
    field :public_field, String, null: false, authenticate: false
    field :private_field, String, null: false, authenticate: true

    def public_field
      'Field does not require authentication'
    end

    def private_field
      'Field will always require authentication'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
graphql_devise-0.15.0 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.14.3 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.14.2 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.14.1 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.14.0 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.6 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.5 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.4 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.3 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.2 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.1 spec/dummy/app/graphql/types/query_type.rb
graphql_devise-0.13.0 spec/dummy/app/graphql/types/query_type.rb