graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.Endpoint

Synopsis

Documentation

data EndpointMethod Source #

Constructors

GET 
POST 
PUT 
DELETE 
PATCH 

Instances

Instances details
FromJSON EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSON EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSONKey EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

HasCodec EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Bounded EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Enum 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 #

Show EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Eq EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Hashable EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToTxt EndpointMethod Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

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
FromJSON EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSON EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

HasCodec EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Eq EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Hashable EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToTxt EndpointName Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

data EndpointUrl Source #

Instances

Instances details
FromJSON EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSON EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

HasCodec EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Show EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Eq EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Ord EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Hashable EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToTxt EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

FromHttpApiData EndpointUrl Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

data QueryReference Source #

Instances

Instances details
FromJSON QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSON QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

HasCodec 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 #

Show QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Eq QueryReference Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

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
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) #

Functor EndpointDef Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

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

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

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

Defined in Hasura.RQL.Types.Endpoint

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

Defined in Hasura.RQL.Types.Endpoint

(HasCodec query, Typeable query) => HasCodec (EndpointDef query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

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 #

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 #

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 #

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
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) #

Functor EndpointMetadata Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Methods

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

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

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

Defined in Hasura.RQL.Types.Endpoint

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

Defined in Hasura.RQL.Types.Endpoint

(HasCodec query, Typeable query) => HasCodec (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 #

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

Defined in Hasura.RQL.Types.Endpoint

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

type Rep (EndpointMetadata query) Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ceUrl :: forall query. Lens' (EndpointMetadata query) EndpointUrl 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
FromJSON DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

ToJSON 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 #

Show DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

Eq DropEndpoint Source # 
Instance details

Defined in Hasura.RQL.Types.Endpoint

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)))