Sha256: e756f1161a1038d079b191884edac2f380ea2f37a86ecbea06924741c370a387

Contents?: true

Size: 664 Bytes

Versions: 48

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

module Types
  class QueryType < Ibrain::Types::BaseApiObject
    description 'Define all resolver for client'

    # Add `node(id: ID!) and `nodes(ids: [ID!]!)`
    include GraphQL::Types::Relay::HasNodeField
    include GraphQL::Types::Relay::HasNodesField

    # Add root-level fields here.
    # Default session_required is true, set false if yout want to skip authenticated
    # They will be entry points for queries on your schema.

    # Example with user resolvers
    # field :authenticated_users, resolver: Resolvers::UsersResolver
    # field :users, resolver: Resolvers::UsersResolver, session_required: false
  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/query_type.rb.tt
ibrain-core-0.5.13 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.12 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.10 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.9 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.8 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.7 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.6 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.5 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.4 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.3 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.2 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.1 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.5.0 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.9 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.8 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.7 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.5 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.4 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt
ibrain-core-0.4.3 lib/generators/ibrain/install/templates/graphql/types/query_type.rb.tt