Sha256: cf18b085113854a66f829796f905bd680dfb8d0b2f910143ea05042719022cfb

Contents?: true

Size: 216 Bytes

Versions: 6

Compression:

Stored size: 216 Bytes

Contents

require "okay/graphql"

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

headers = { bearer_token: "oh no, invalid bearer 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-intentional-failure-example.rb
okay-11.0.0 examples/github-graphql-intentional-failure-example.rb
okay-10.0.0 examples/github-graphql-intentional-failure-example.rb
okay-9.0.0 examples/github-graphql-intentional-failure-example.rb
okay-8.0.0 examples/github-graphql-intentional-failure-example.rb
okay-7.0.0 examples/github-graphql-intentional-failure-example.rb