module Hasura

Overview

An auxiliary model to help with all kinds of queries and mutations to our DB.

Extended Modules

Defined in:

hasura-client.cr
schema/schema.cr

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.client : HTTP::Client #

[View source]
def self.client? : HTTP::Client | Nil #

[View source]
def self.endpoint : String #

[View source]
def self.endpoint? : String | Nil #

[View source]
def self.secret : String #

[View source]
def self.secret? : String | Nil #

[View source]

Instance Method Detail

def connect(host, secret, endpoint = ENV["HASURA_ENDPOINT"]? || "/v1/graphql") #

[View source]
def post_request(request) #

[View source]

Macro Detail

macro mutate(gql_name, **variables) #

[View source]
macro query(gql_name, **variables) #

[View source]