class Fbe::Graph

def client

Returns:
  • (GraphQL::Client) - A configured GraphQL client for GitHub
def client
  @client ||=
    begin
      http = HTTP.new(@token, @host)
      schema = GraphQL::Client.load_schema(http)
      c = GraphQL::Client.new(schema:, execute: http)
      c.allow_dynamic_queries = true
      c
    end
end