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

Hasura.RQL.DDL.Metadata.Types

Description

Types related to metadata management API

Synopsis

Documentation

data ClearMetadata Source #

ClearMetadata can be used to reset the state of Hasura -- clean the current state by forgetting the tables tracked, relationships, permissions, event triggers etc.

https://hasura.io/docs/latest/api-reference/metadata-api/manage-metadata/#metadata-clear-metadata

Constructors

ClearMetadata 

Instances

Instances details
Eq ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Show ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser ClearMetadata

parseJSONList :: Value -> Parser [ClearMetadata]

ToJSON ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: ClearMetadata -> Value

toEncoding :: ClearMetadata -> Encoding

toJSONList :: [ClearMetadata] -> Value

toEncodingList :: [ClearMetadata] -> Encoding

data ExportMetadata Source #

Constructors

ExportMetadata 

Instances

Instances details
Eq ExportMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Show ExportMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON ExportMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser ExportMetadata

parseJSONList :: Value -> Parser [ExportMetadata]

ToJSON ExportMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: ExportMetadata -> Value

toEncoding :: ExportMetadata -> Encoding

toJSONList :: [ExportMetadata] -> Value

toEncodingList :: [ExportMetadata] -> Encoding

data ReloadSpec a Source #

Constructors

RSReloadAll 
RSReloadList (HashSet a) 

Instances

Instances details
Eq a => Eq (ReloadSpec a) Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

(==) :: ReloadSpec a -> ReloadSpec a -> Bool #

(/=) :: ReloadSpec a -> ReloadSpec a -> Bool #

Show a => Show (ReloadSpec a) Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

(FromJSON a, Eq a, Hashable a) => FromJSON (ReloadSpec a) Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser (ReloadSpec a)

parseJSONList :: Value -> Parser [ReloadSpec a]

ToJSON a => ToJSON (ReloadSpec a) Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: ReloadSpec a -> Value

toEncoding :: ReloadSpec a -> Encoding

toJSONList :: [ReloadSpec a] -> Value

toEncodingList :: [ReloadSpec a] -> Encoding

data ReloadMetadata Source #

ReloadMetadata should be used when there is a change in underlying Postgres database that Hasura should be aware of. Example: a new column is added to a table using psql and this column should now be added to the GraphQL schema.

https://hasura.io/docs/latest/api-reference/metadata-api/manage-metadata/#metadata-reload-metadata

Constructors

ReloadMetadata 

Fields

Instances

Instances details
Eq ReloadMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Show ReloadMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON ReloadMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser ReloadMetadata

parseJSONList :: Value -> Parser [ReloadMetadata]

ToJSON ReloadMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: ReloadMetadata -> Value

toEncoding :: ReloadMetadata -> Encoding

toJSONList :: [ReloadMetadata] -> Value

toEncodingList :: [ReloadMetadata] -> Encoding

data DumpInternalState Source #

Undocumented Metadata API action which serializes the entire SchemaCache.

Constructors

DumpInternalState 

data ReplaceMetadataV1 Source #

Replace metadata either with or without metadata sources.

Instances

Instances details
Eq ReplaceMetadataV1 Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON ReplaceMetadataV1 Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser ReplaceMetadataV1

parseJSONList :: Value -> Parser [ReplaceMetadataV1]

ToJSON ReplaceMetadataV1 Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

data ReplaceMetadata Source #

ReplaceMetadata is used to replace/import metadata into Hasura. Existing metadata will be replaced with the new one.

https://hasura.io/docs/latest/api-reference/metadata-api/manage-metadata/#metadata-replace-metadata TODO: If additional API versions are supported in future it would be ideal to include a version field Rather than differentiating on the "metadata" field.

Instances

Instances details
Eq ReplaceMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON ReplaceMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser ReplaceMetadata

parseJSONList :: Value -> Parser [ReplaceMetadata]

ToJSON ReplaceMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: ReplaceMetadata -> Value

toEncoding :: ReplaceMetadata -> Encoding

toJSONList :: [ReplaceMetadata] -> Value

toEncodingList :: [ReplaceMetadata] -> Encoding

data WebHookUrl Source #

Constructors

EnvVar String 
URL Text 

Instances

Instances details
Eq WebHookUrl Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

FromJSON WebHookUrl Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

parseJSON :: Value -> Parser WebHookUrl

parseJSONList :: Value -> Parser [WebHookUrl]

ToJSON WebHookUrl Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Methods

toJSON :: WebHookUrl -> Value

toEncoding :: WebHookUrl -> Encoding

toJSONList :: [WebHookUrl] -> Value

toEncodingList :: [WebHookUrl] -> Encoding