Module: Bearcat::Client::GraphQL

Included in:
Bearcat::Client
Defined in:
lib/bearcat/client/graph_ql.rb

Overview

Request body format should be: { query: “query string” }. More info in README.md

Instance Method Summary collapse

Instance Method Details

#graphql_query(query) ⇒ Object



6
7
8
# File 'lib/bearcat/client/graph_ql.rb', line 6

def graphql_query(query)
  post('/api/graphql', query)
end