Sha256: a7cf409742574a3ee58403b5a0e207af709544b47fffea91727b06c22dc7b84f
Contents?: true
Size: 968 Bytes
Versions: 6
Compression:
Stored size: 968 Bytes
Contents
# frozen_string_literal: true # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # ! The following examples are used together with # ! https://github.com/sushie1984/rails-graphql-server # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! uri = 'http://rails-graphql-server.herokuapp.com/api/graphql' GraphqlConnector.configure do |config| config.add_server(name: 'RailsGraphqlServer', uri: uri, headers: {}) end GraphqlConnector::RailsGraphqlServer.query('departments', {}, ['id', 'name', 'employees' => ['yearlySalary']]) GraphqlConnector::RailsGraphqlServer.query('departments', { id: %w[1 2] }, ['id', 'name', 'employees' => ['yearlySalary']])
Version data entries
6 entries across 6 versions & 1 rubygems