graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Data.Aeson.Extended

Synopsis

Documentation

class ToJSONKeyValue a where Source #

Methods

toJSONKeyValue :: a -> (Key, Value) Source #

Instances

Instances details
ToJSONKeyValue Void Source # 
Instance details

Defined in Data.Aeson.Extended

Methods

toJSONKeyValue :: Void -> (Key, Value) Source #

ToJSONKeyValue ColExp Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp

Methods

toJSONKeyValue :: ColExp -> (Key, Value) Source #

ToJSON a => ToJSONKeyValue (BooleanOperators a) Source # 
Instance details

Defined in Hasura.Backends.Postgres.Types.BoolExp

Methods

toJSONKeyValue :: BooleanOperators a -> (Key, Value) Source #

ToJSON a => ToJSONKeyValue (BooleanOperators a) Source # 
Instance details

Defined in Hasura.Backends.MSSQL.Types.Instances

Methods

toJSONKeyValue :: BooleanOperators a -> (Key, Value) Source #

ToJSON a => ToJSONKeyValue (CustomBooleanOperator a) Source # 
Instance details

Defined in Hasura.Backends.DataConnector.Adapter.Backend

Methods

toJSONKeyValue :: CustomBooleanOperator a -> (Key, Value) Source #

ToJSON a => ToJSONKeyValue (BooleanOperators a) Source # 
Instance details

Defined in Hasura.Backends.BigQuery.Types

Methods

toJSONKeyValue :: BooleanOperators a -> (Key, Value) Source #

(Backend b, ToJSONKeyValue (AggregationPredicates b a), ToJSONKeyValue (OpExpG b a), ToJSON a) => ToJSONKeyValue (AnnBoolExpFld b a) Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp

Methods

toJSONKeyValue :: AnnBoolExpFld b a -> (Key, Value) Source #

(Backend b, ToJSONKeyValue (BooleanOperators b a), ToJSON a) => ToJSONKeyValue (OpExpG b a) Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp

Methods

toJSONKeyValue :: OpExpG b a -> (Key, Value) Source #

ToJSONKeyValue (AnnBoolExpFld b a) => ToJSONKeyValue (AnnColumnCaseBoolExpField b a) Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp

Methods

toJSONKeyValue :: AnnColumnCaseBoolExpField b a -> (Key, Value) Source #

(ToJSON (AggregationPredicateArguments b), ToJSON (AnnBoolExp b field), ToJSONKeyValue (OpExpG b field)) => ToJSONKeyValue (AggregationPredicate b field) Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp.AggregationPredicates

Methods

toJSONKeyValue :: AggregationPredicate b field -> (Key, Value) Source #

(Backend b, ToJSONKeyValue (AggregationPredicate b field)) => ToJSONKeyValue (AggregationPredicatesImplementation b field) Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp.AggregationPredicates

ToJSONKeyValue a => ToJSONKeyValue (Const a b) Source # 
Instance details

Defined in Data.Aeson.Extended

Methods

toJSONKeyValue :: Const a b -> (Key, Value) Source #

class FromJSONKeyValue a where Source #

Methods

parseJSONKeyValue :: (Key, Value) -> Parser a Source #

Instances

Instances details
FromJSONKeyValue ColExp Source # 
Instance details

Defined in Hasura.RQL.IR.BoolExp

Methods

parseJSONKeyValue :: (Key, Value) -> Parser ColExp Source #

class FromJSONWithContext ctx a | a -> ctx where Source #

Similar to FromJSON, except the parser can also source data with which to construct a from a context ctx.

This can be useful if the a value contains some data that is not from the current piece of JSON (the Value). For example, some data from higher up in the overall JSON graph, or from some system context.

Methods

parseJSONWithContext :: ctx -> Value -> Parser a Source #

(.=?) :: (ToJSON v, KeyValue kv) => Key -> Maybe v -> Maybe kv infixr 8 Source #

An optional key-value pair for encoding a JSON object.

object $ ["foo" .= 0] <> catMaybes [ "bar" .=? Nothing, "baz" .=? 2 ]

mapWithJSONPath :: (a -> Parser b) -> [a] -> Parser [b] Source #

Map a Parser over a list, keeping the JSONPath context

encodeToStrictText :: ToJSON a => a -> Text Source #