Module: FragmentGraphQl
- Extended by:
- T::Sig
- Defined in:
- lib/fragment_client.rb
Overview
A support module for the client
Constant Summary collapse
- Schema =
T.let(GraphQL::Client.load_schema("#{__dir__}/fragment.schema.json"), T.untyped)
- Client =
T.let(GraphQL::Client.new(schema: Schema, execute: http), GraphQL::Client)
- Queries =
T.let(Client.parse( File.read("#{__dir__}/queries.graphql") ), T.untyped)