Module: Bearcat::Client::GraphQL
- 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 9 10 11 12 13 |
# File 'lib/bearcat/client/graph_ql.rb', line 6 def graphql_query(query) if query.is_a?(String) query = { query: query } end post('/api/graphql', query) end |