Sha256: ad4c88de0a2e34305e0ee2c0bda03544a9811771706d6f7d9d56083ad17fe2b6

Contents?: true

Size: 210 Bytes

Versions: 6

Compression:

Stored size: 210 Bytes

Contents

require "okay/graphql"

query = Okay::GraphQL.query {
  viewer {
    login
  }
}

headers = { bearer_token: ENV['DEMO_GITHUB_TOKEN'] }
results = query.submit!(:github, headers).or_raise!
puts results.from_json

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
okay-12.0.0 examples/github-graphql-example.rb
okay-11.0.0 examples/github-graphql-example.rb
okay-10.0.0 examples/github-graphql-example.rb
okay-9.0.0 examples/github-graphql-example.rb
okay-8.0.0 examples/github-graphql-example.rb
okay-7.0.0 examples/github-graphql-example.rb