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

Hasura.RQL.Types.Endpoint

Synopsis

Documentation

data EndpointMethod Source #

Constructors

GET 
POST 
PUT 
DELETE 
PATCH 

Instances

Instances details
Eq EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Generic EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Associated Types

type Rep EndpointMethod :: Type -> Type #

Hashable EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

FromJSON EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser EndpointMethod

parseJSONList :: Value -> Parser [EndpointMethod]

ToJSONKey EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSONKey :: ToJSONKeyFunction EndpointMethod

toJSONKeyList :: ToJSONKeyFunction [EndpointMethod]

ToJSON EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: EndpointMethod -> Value

toEncoding :: EndpointMethod -> Encoding

toJSONList :: [EndpointMethod] -> Value

toEncodingList :: [EndpointMethod] -> Encoding

ToTxt EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toTxt :: EndpointMethod -> Text Source #

type Rep EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

type Rep EndpointMethod = D1 ('MetaData "EndpointMethod" "Hasura.RQL.Types.Endpoint" "graphql-engine-1.0.0-inplace" 'False) ((C1 ('MetaCons "GET" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "POST" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PUT" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DELETE" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PATCH" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype EndpointName Source #

Constructors

EndpointName 

Instances

Instances details
Eq EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Hashable EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

FromJSON EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser EndpointName

parseJSONList :: Value -> Parser [EndpointName]

ToJSON EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: EndpointName -> Value

toEncoding :: EndpointName -> Encoding

toJSONList :: [EndpointName] -> Value

toEncodingList :: [EndpointName] -> Encoding

ToTxt EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toTxt :: EndpointName -> Text Source #

newtype EndpointUrl Source #

Constructors

EndpointUrl 

Instances

Instances details
Eq EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Hashable EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

FromJSON EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser EndpointUrl

parseJSONList :: Value -> Parser [EndpointUrl]

ToJSON EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: EndpointUrl -> Value

toEncoding :: EndpointUrl -> Encoding

toJSONList :: [EndpointUrl] -> Value

toEncodingList :: [EndpointUrl] -> Encoding

ToTxt EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toTxt :: EndpointUrl -> Text Source #

FromHttpApiData EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

data QueryReference Source #

Instances

Instances details
Eq QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Generic QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Associated Types

type Rep QueryReference :: Type -> Type #

FromJSON QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser QueryReference

parseJSONList :: Value -> Parser [QueryReference]

ToJSON QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: QueryReference -> Value

toEncoding :: QueryReference -> Encoding

toJSONList :: [QueryReference] -> Value

toEncodingList :: [QueryReference] -> Encoding

type Rep QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

type Rep QueryReference = D1 ('MetaData "QueryReference" "Hasura.RQL.Types.Endpoint" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "QueryReference" 'PrefixI 'True) (S1 ('MetaSel ('Just "_qrCollectionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CollectionName) :*: S1 ('MetaSel ('Just "_qrQueryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 QueryName)))

data EndpointDef query Source #

Constructors

EndpointDef 

Fields

Instances

Instances details
Functor EndpointDef Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

fmap :: (a -> b) -> EndpointDef a -> EndpointDef b #

(<$) :: a -> EndpointDef b -> EndpointDef a #

Foldable EndpointDef Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

fold :: Monoid m => EndpointDef m -> m #

foldMap :: Monoid m => (a -> m) -> EndpointDef a -> m #

foldMap' :: Monoid m => (a -> m) -> EndpointDef a -> m #

foldr :: (a -> b -> b) -> b -> EndpointDef a -> b #

foldr' :: (a -> b -> b) -> b -> EndpointDef a -> b #

foldl :: (b -> a -> b) -> b -> EndpointDef a -> b #

foldl' :: (b -> a -> b) -> b -> EndpointDef a -> b #

foldr1 :: (a -> a -> a) -> EndpointDef a -> a #

foldl1 :: (a -> a -> a) -> EndpointDef a -> a #

toList :: EndpointDef a -> [a] #

null :: EndpointDef a -> Bool #

length :: EndpointDef a -> Int #

elem :: Eq a => a -> EndpointDef a -> Bool #

maximum :: Ord a => EndpointDef a -> a #

minimum :: Ord a => EndpointDef a -> a #

sum :: Num a => EndpointDef a -> a #

product :: Num a => EndpointDef a -> a #

Traversable EndpointDef Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

traverse :: Applicative f => (a -> f b) -> EndpointDef a -> f (EndpointDef b) #

sequenceA :: Applicative f => EndpointDef (f a) -> f (EndpointDef a) #

mapM :: Monad m => (a -> m b) -> EndpointDef a -> m (EndpointDef b) #

sequence :: Monad m => EndpointDef (m a) -> m (EndpointDef a) #

Eq query => Eq (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

(==) :: EndpointDef query -> EndpointDef query -> Bool #

(/=) :: EndpointDef query -> EndpointDef query -> Bool #

Ord query => Ord (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

compare :: EndpointDef query -> EndpointDef query -> Ordering #

(<) :: EndpointDef query -> EndpointDef query -> Bool #

(<=) :: EndpointDef query -> EndpointDef query -> Bool #

(>) :: EndpointDef query -> EndpointDef query -> Bool #

(>=) :: EndpointDef query -> EndpointDef query -> Bool #

max :: EndpointDef query -> EndpointDef query -> EndpointDef query #

min :: EndpointDef query -> EndpointDef query -> EndpointDef query #

Show query => Show (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

showsPrec :: Int -> EndpointDef query -> ShowS #

show :: EndpointDef query -> String #

showList :: [EndpointDef query] -> ShowS #

Generic (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Associated Types

type Rep (EndpointDef query) :: Type -> Type #

Methods

from :: EndpointDef query -> Rep (EndpointDef query) x #

to :: Rep (EndpointDef query) x -> EndpointDef query #

FromJSON query => FromJSON (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser (EndpointDef query)

parseJSONList :: Value -> Parser [EndpointDef query]

ToJSON query => ToJSON (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: EndpointDef query -> Value

toEncoding :: EndpointDef query -> Encoding

toJSONList :: [EndpointDef query] -> Value

toEncodingList :: [EndpointDef query] -> Encoding

type Rep (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

type Rep (EndpointDef query) = D1 ('MetaData "EndpointDef" "Hasura.RQL.Types.Endpoint" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "EndpointDef" 'PrefixI 'True) (S1 ('MetaSel ('Just "_edQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 query)))

edQuery :: forall query query. Iso (EndpointDef query) (EndpointDef query) query query Source #

splitPath :: (Text -> a) -> (Text -> a) -> EndpointUrl -> [a] Source #

Split a path and construct PathSegments based on callbacks for variables and literals Var callback is passed the ":" prefix as part of the text.

data EndpointMetadata query Source #

Instances

Instances details
Functor EndpointMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

fmap :: (a -> b) -> EndpointMetadata a -> EndpointMetadata b #

(<$) :: a -> EndpointMetadata b -> EndpointMetadata a #

Foldable EndpointMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

fold :: Monoid m => EndpointMetadata m -> m #

foldMap :: Monoid m => (a -> m) -> EndpointMetadata a -> m #

foldMap' :: Monoid m => (a -> m) -> EndpointMetadata a -> m #

foldr :: (a -> b -> b) -> b -> EndpointMetadata a -> b #

foldr' :: (a -> b -> b) -> b -> EndpointMetadata a -> b #

foldl :: (b -> a -> b) -> b -> EndpointMetadata a -> b #

foldl' :: (b -> a -> b) -> b -> EndpointMetadata a -> b #

foldr1 :: (a -> a -> a) -> EndpointMetadata a -> a #

foldl1 :: (a -> a -> a) -> EndpointMetadata a -> a #

toList :: EndpointMetadata a -> [a] #

null :: EndpointMetadata a -> Bool #

length :: EndpointMetadata a -> Int #

elem :: Eq a => a -> EndpointMetadata a -> Bool #

maximum :: Ord a => EndpointMetadata a -> a #

minimum :: Ord a => EndpointMetadata a -> a #

sum :: Num a => EndpointMetadata a -> a #

product :: Num a => EndpointMetadata a -> a #

Traversable EndpointMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

traverse :: Applicative f => (a -> f b) -> EndpointMetadata a -> f (EndpointMetadata b) #

sequenceA :: Applicative f => EndpointMetadata (f a) -> f (EndpointMetadata a) #

mapM :: Monad m => (a -> m b) -> EndpointMetadata a -> m (EndpointMetadata b) #

sequence :: Monad m => EndpointMetadata (m a) -> m (EndpointMetadata a) #

Eq query => Eq (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

(==) :: EndpointMetadata query -> EndpointMetadata query -> Bool #

(/=) :: EndpointMetadata query -> EndpointMetadata query -> Bool #

Ord query => Ord (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show query => Show (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Generic (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Associated Types

type Rep (EndpointMetadata query) :: Type -> Type #

Methods

from :: EndpointMetadata query -> Rep (EndpointMetadata query) x #

to :: Rep (EndpointMetadata query) x -> EndpointMetadata query #

FromJSON query => FromJSON (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser (EndpointMetadata query)

parseJSONList :: Value -> Parser [EndpointMetadata query]

ToJSON query => ToJSON (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: EndpointMetadata query -> Value

toEncoding :: EndpointMetadata query -> Encoding

toJSONList :: [EndpointMetadata query] -> Value

toEncodingList :: [EndpointMetadata query] -> Encoding

type Rep (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

type Rep (EndpointMetadata query) = D1 ('MetaData "EndpointMetadata" "Hasura.RQL.Types.Endpoint" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "EndpointMetadata" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_ceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EndpointName) :*: S1 ('MetaSel ('Just "_ceUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EndpointUrl)) :*: (S1 ('MetaSel ('Just "_ceMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty EndpointMethod)) :*: (S1 ('MetaSel ('Just "_ceDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (EndpointDef query)) :*: S1 ('MetaSel ('Just "_ceComment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

ceUrl :: forall query. Lens' (EndpointMetadata query) EndpointUrl Source #

ceName :: forall query. Lens' (EndpointMetadata query) EndpointName Source #

ceMethods :: forall query. Lens' (EndpointMetadata query) (NonEmpty EndpointMethod) Source #

ceDefinition :: forall query query. Lens (EndpointMetadata query) (EndpointMetadata query) (EndpointDef query) (EndpointDef query) Source #

ceComment :: forall query. Lens' (EndpointMetadata query) (Maybe Text) Source #

data DropEndpoint Source #

Constructors

DropEndpoint 

Instances

Instances details
Eq DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Generic DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Associated Types

type Rep DropEndpoint :: Type -> Type #

FromJSON DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

parseJSON :: Value -> Parser DropEndpoint

parseJSONList :: Value -> Parser [DropEndpoint]

ToJSON DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

toJSON :: DropEndpoint -> Value

toEncoding :: DropEndpoint -> Encoding

toJSONList :: [DropEndpoint] -> Value

toEncodingList :: [DropEndpoint] -> Encoding

type Rep DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

type Rep DropEndpoint = D1 ('MetaData "DropEndpoint" "Hasura.RQL.Types.Endpoint" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DropEndpoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "_deName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EndpointName)))