Sha256: 2231f88ca3b4bac4fe46ab2d23601a35a5364918185e19910a689e6372552f03
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
require "graphql/client" require "graphql/client/http" API_URL = "https://gql.waveapps.com/graphql/public" WAVEAPPS_TOKEN = ENV.fetch('WAVEAPPS_TOKEN') HTTP = GraphQL::Client::HTTP.new(API_URL) do def headers(context) # Optionally set any HTTP headers { "Authorization" => "Bearer #{WAVEAPPS_TOKEN}" } end end namespace :schema do desc "Dumps GraphQL Schema so that you don't have to make http requests every time" task :dump do GraphQL::Client.dump_schema(HTTP, "./tmp/schema.json") end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
waveapps-0.1.7 | lib/tasks/schema.rake |
waveapps-0.1.6 | lib/tasks/schema.rake |
waveapps-0.1.5 | lib/tasks/schema.rake |
waveapps-0.1.4 | lib/tasks/schema.rake |
waveapps-0.1.3 | lib/tasks/schema.rake |