Sha256: c288f8d08fe4db4c13409393ba0dd2ce62654f697f0e75eb6e5014b2cce30ddb

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

require "graphql"

module Kanji
  class Graph
    class Query
      def self.call(schema:, query:, variables: {}, context: {})
        GraphQL::Query.new(
          schema.call,
          query,
          variables: variables,
          context: context
        ).result
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/graph/query.rb
kanji-web-0.3.0 lib/kanji/graph/query.rb
kanji-web-0.2.2 lib/kanji/graph/query.rb
kanji-web-0.2.1 lib/kanji/graph/query.rb
kanji-web-0.2.0 lib/kanji/graph/query.rb
kanji-web-0.1.0 lib/kanji/graph/query.rb