Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Types related to metadata management API
Synopsis
- data ClearMetadata = ClearMetadata
- data ExportMetadata = ExportMetadata
- data ReloadSpec a
- = RSReloadAll
- | RSReloadList (HashSet a)
- data ReloadMetadata = ReloadMetadata {
- _rmReloadRemoteSchemas :: ReloadRemoteSchemas
- _rmReloadSources :: ReloadSources
- _rmRecreateEventTriggers :: ReloadSources
- _rmReloadDataConnectors :: ReloadDataConnectors
- data DumpInternalState = DumpInternalState
- data GetInconsistentMetadata = GetInconsistentMetadata
- data DropInconsistentMetadata = DropInconsistentMetadata
- data AllowInconsistentMetadata
- data ReplaceMetadataV1
- data ReplaceMetadataV2 = ReplaceMetadataV2 {}
- data ReplaceMetadata
- data WebHookUrl
- data TestWebhookTransform = TestWebhookTransform {}
- twtRequestTransformer :: Lens' TestWebhookTransform RequestTransform
- twtResponseTransformer :: Lens' TestWebhookTransform (Maybe MetadataResponseTransform)
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
Instances
data ExportMetadata Source #
ExportMetadata
is used to export the current metadata from the
server as a JSON file.
https://hasura.io/docs/latest/api-reference/metadata-api/manage-metadata/#metadata-export-metadata
Instances
FromJSON ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ExportMetadata Source # parseJSONList :: Value -> Parser [ExportMetadata] Source # | |
ToJSON ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ExportMetadata -> Value Source # toEncoding :: ExportMetadata -> Encoding Source # toJSONList :: [ExportMetadata] -> Value Source # toEncodingList :: [ExportMetadata] -> Encoding Source # | |
Show ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> ExportMetadata -> ShowS # show :: ExportMetadata -> String # showList :: [ExportMetadata] -> ShowS # | |
Eq ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ExportMetadata -> ExportMetadata -> Bool # (/=) :: ExportMetadata -> ExportMetadata -> Bool # |
data ReloadSpec a Source #
Instances
(FromJSON a, Hashable a) => FromJSON (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser (ReloadSpec a) Source # parseJSONList :: Value -> Parser [ReloadSpec a] Source # | |
ToJSON a => ToJSON (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReloadSpec a -> Value Source # toEncoding :: ReloadSpec a -> Encoding Source # toJSONList :: [ReloadSpec a] -> Value Source # toEncodingList :: [ReloadSpec a] -> Encoding Source # | |
Show a => Show (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> ReloadSpec a -> ShowS # show :: ReloadSpec a -> String # showList :: [ReloadSpec a] -> ShowS # | |
Eq a => Eq (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReloadSpec a -> ReloadSpec a -> Bool # (/=) :: ReloadSpec a -> ReloadSpec a -> Bool # |
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
ReloadMetadata | |
|
Instances
data DumpInternalState Source #
Undocumented Metadata API action which serializes the entire
SchemaCache
.
Instances
data GetInconsistentMetadata Source #
GetInconsistentMetadata
can be used to fetch all inconsistent metadata objects.
Instances
FromJSON GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
ToJSON GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
Generic GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types type Rep GetInconsistentMetadata :: Type -> Type # | |
Show GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> GetInconsistentMetadata -> ShowS # show :: GetInconsistentMetadata -> String # showList :: [GetInconsistentMetadata] -> ShowS # | |
Eq GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
type Rep GetInconsistentMetadata Source # | |
data DropInconsistentMetadata Source #
DropInconsistentMetadata
can be used to purge all inconsistent
objects from the metadata.
Instances
FromJSON DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
ToJSON DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
Generic DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types type Rep DropInconsistentMetadata :: Type -> Type # | |
Show DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> DropInconsistentMetadata -> ShowS # show :: DropInconsistentMetadata -> String # showList :: [DropInconsistentMetadata] -> ShowS # | |
Eq DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
type Rep DropInconsistentMetadata Source # | |
data AllowInconsistentMetadata Source #
Instances
FromJSON AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
ToJSON AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
Show AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> AllowInconsistentMetadata -> ShowS # show :: AllowInconsistentMetadata -> String # showList :: [AllowInconsistentMetadata] -> ShowS # | |
Eq AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types |
data ReplaceMetadataV1 Source #
Replace metadata either with or without metadata sources.
Instances
FromJSON ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadataV1 Source # parseJSONList :: Value -> Parser [ReplaceMetadataV1] Source # | |
ToJSON ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadataV1 -> Value Source # toEncoding :: ReplaceMetadataV1 -> Encoding Source # toJSONList :: [ReplaceMetadataV1] -> Value Source # toEncodingList :: [ReplaceMetadataV1] -> Encoding Source # | |
Eq ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadataV1 -> ReplaceMetadataV1 -> Bool # (/=) :: ReplaceMetadataV1 -> ReplaceMetadataV1 -> Bool # |
data ReplaceMetadataV2 Source #
Replace metadata while allowing for inconsitency in the metadata object.
Instances
FromJSON ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadataV2 Source # parseJSONList :: Value -> Parser [ReplaceMetadataV2] Source # | |
ToJSON ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadataV2 -> Value Source # toEncoding :: ReplaceMetadataV2 -> Encoding Source # toJSONList :: [ReplaceMetadataV2] -> Value Source # toEncodingList :: [ReplaceMetadataV2] -> Encoding Source # | |
Eq ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadataV2 -> ReplaceMetadataV2 -> Bool # (/=) :: ReplaceMetadataV2 -> ReplaceMetadataV2 -> Bool # |
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
FromJSON ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadata Source # parseJSONList :: Value -> Parser [ReplaceMetadata] Source # | |
ToJSON ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadata -> Value Source # toEncoding :: ReplaceMetadata -> Encoding Source # toJSONList :: [ReplaceMetadata] -> Value Source # toEncodingList :: [ReplaceMetadata] -> Encoding Source # | |
Eq ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadata -> ReplaceMetadata -> Bool # (/=) :: ReplaceMetadata -> ReplaceMetadata -> Bool # |
data WebHookUrl Source #
Instances
FromJSON WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser WebHookUrl Source # parseJSONList :: Value -> Parser [WebHookUrl] Source # | |
ToJSON WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: WebHookUrl -> Value Source # toEncoding :: WebHookUrl -> Encoding Source # toJSONList :: [WebHookUrl] -> Value Source # toEncodingList :: [WebHookUrl] -> Encoding Source # | |
Eq WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: WebHookUrl -> WebHookUrl -> Bool # (/=) :: WebHookUrl -> WebHookUrl -> Bool # |
data TestWebhookTransform Source #
TestWebhookTransform
can be used to test out request
transformations using mock data.
https://hasura.io/docs/latest/api-reference/metadata-api/manage-metadata/#test-webhook-transform
Instances
FromJSON TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
ToJSON TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: TestWebhookTransform -> Value Source # toEncoding :: TestWebhookTransform -> Encoding Source # toJSONList :: [TestWebhookTransform] -> Value Source # toEncodingList :: [TestWebhookTransform] -> Encoding Source # | |
Eq TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: TestWebhookTransform -> TestWebhookTransform -> Bool # (/=) :: TestWebhookTransform -> TestWebhookTransform -> Bool # |