Module: GraphQL

Defined in:
lib/graphql-hive.rb,
lib/graphql-hive/client.rb,
lib/graphql-hive/printer.rb,
lib/graphql-hive/analyzer.rb,
lib/graphql-hive/usage_reporter.rb

Overview

class MySchema < GraphQL::Schema

use(
  GraphQL::Hive,
  {
    token: 'YOUR-TOKEN',
    collect_usage: true,
    report_schema: true,
    enabled: true, // Enable/Disable Hive Client
    debug: true, // Debugging mode
    logger: MyLogger.new,
    endpoint: 'app.graphql-hive.com',
    port: 80,
    reporting: {
      author: 'Author of the latest change',
      commit: 'git sha or any identifier',
      service_name: '',
      service_url: '',
    },
    client_info: Proc.new { |context| { name: context.client_name, version: context.client_version } }
  }
)

# ...

end

Defined Under Namespace

Classes: Hive