Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types related to metadata management API
Synopsis
- data ClearMetadata = ClearMetadata
- data ExportMetadata = ExportMetadata
- data ReloadSpec a
- = RSReloadAll
- | RSReloadList (HashSet a)
- type ReloadRemoteSchemas = ReloadSpec RemoteSchemaName
- type ReloadSources = ReloadSpec SourceName
- reloadAllRemoteSchemas :: ReloadRemoteSchemas
- reloadAllSources :: ReloadSources
- data ReloadMetadata = ReloadMetadata {}
- data DumpInternalState = DumpInternalState
- data GetInconsistentMetadata = GetInconsistentMetadata
- data DropInconsistentMetadata = DropInconsistentMetadata
- data AllowInconsistentMetadata
- data ReplaceMetadataV1
- data ReplaceMetadataV2 = ReplaceMetadataV2 {}
- data ReplaceMetadata
- data WebHookUrl
- data TestWebhookTransform = TestWebhookTransform {}
- twtTransformer :: Lens' TestWebhookTransform RequestTransform
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
Eq ClearMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ClearMetadata -> ClearMetadata -> Bool # (/=) :: ClearMetadata -> ClearMetadata -> Bool # | |
Show ClearMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> ClearMetadata -> ShowS # show :: ClearMetadata -> String # showList :: [ClearMetadata] -> ShowS # | |
FromJSON ClearMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ClearMetadata parseJSONList :: Value -> Parser [ClearMetadata] | |
ToJSON ClearMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ClearMetadata -> Value toEncoding :: ClearMetadata -> Encoding toJSONList :: [ClearMetadata] -> Value toEncodingList :: [ClearMetadata] -> Encoding |
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
Eq ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ExportMetadata -> ExportMetadata -> Bool # (/=) :: ExportMetadata -> ExportMetadata -> Bool # | |
Show ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> ExportMetadata -> ShowS # show :: ExportMetadata -> String # showList :: [ExportMetadata] -> ShowS # | |
FromJSON ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ExportMetadata parseJSONList :: Value -> Parser [ExportMetadata] | |
ToJSON ExportMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ExportMetadata -> Value toEncoding :: ExportMetadata -> Encoding toJSONList :: [ExportMetadata] -> Value toEncodingList :: [ExportMetadata] -> Encoding |
data ReloadSpec a Source #
RSReloadAll | |
RSReloadList (HashSet a) |
Instances
Eq a => Eq (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReloadSpec a -> ReloadSpec a -> Bool # (/=) :: ReloadSpec a -> ReloadSpec a -> Bool # | |
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 # | |
(FromJSON a, Eq a, Hashable a) => FromJSON (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser (ReloadSpec a) parseJSONList :: Value -> Parser [ReloadSpec a] | |
ToJSON a => ToJSON (ReloadSpec a) Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReloadSpec a -> Value toEncoding :: ReloadSpec a -> Encoding toJSONList :: [ReloadSpec a] -> Value toEncodingList :: [ReloadSpec a] -> Encoding |
type ReloadSources = ReloadSpec SourceName Source #
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
Eq ReloadMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReloadMetadata -> ReloadMetadata -> Bool # (/=) :: ReloadMetadata -> ReloadMetadata -> Bool # | |
Show ReloadMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> ReloadMetadata -> ShowS # show :: ReloadMetadata -> String # showList :: [ReloadMetadata] -> ShowS # | |
FromJSON ReloadMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReloadMetadata parseJSONList :: Value -> Parser [ReloadMetadata] | |
ToJSON ReloadMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReloadMetadata -> Value toEncoding :: ReloadMetadata -> Encoding toJSONList :: [ReloadMetadata] -> Value toEncodingList :: [ReloadMetadata] -> Encoding |
data DumpInternalState Source #
Undocumented Metadata API action which serializes the entire
SchemaCache
.
Instances
Eq DumpInternalState Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: DumpInternalState -> DumpInternalState -> Bool # (/=) :: DumpInternalState -> DumpInternalState -> Bool # | |
Show DumpInternalState Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> DumpInternalState -> ShowS # show :: DumpInternalState -> String # showList :: [DumpInternalState] -> ShowS # | |
FromJSON DumpInternalState Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser DumpInternalState parseJSONList :: Value -> Parser [DumpInternalState] | |
ToJSON DumpInternalState Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: DumpInternalState -> Value toEncoding :: DumpInternalState -> Encoding toJSONList :: [DumpInternalState] -> Value toEncodingList :: [DumpInternalState] -> Encoding |
data GetInconsistentMetadata Source #
GetInconsistentMetadata
can be used to fetch all inconsistent metadata objects.
Instances
Eq GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
Show GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> GetInconsistentMetadata -> ShowS # show :: GetInconsistentMetadata -> String # showList :: [GetInconsistentMetadata] -> ShowS # | |
FromJSON GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser GetInconsistentMetadata parseJSONList :: Value -> Parser [GetInconsistentMetadata] | |
ToJSON GetInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: GetInconsistentMetadata -> Value toEncoding :: GetInconsistentMetadata -> Encoding toJSONList :: [GetInconsistentMetadata] -> Value toEncodingList :: [GetInconsistentMetadata] -> Encoding |
data DropInconsistentMetadata Source #
DropInconsistentMetadata
can be used to purge all inconsistent
objects from the metadata.
Instances
Eq DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types | |
Show DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types showsPrec :: Int -> DropInconsistentMetadata -> ShowS # show :: DropInconsistentMetadata -> String # showList :: [DropInconsistentMetadata] -> ShowS # | |
FromJSON DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser DropInconsistentMetadata parseJSONList :: Value -> Parser [DropInconsistentMetadata] | |
ToJSON DropInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: DropInconsistentMetadata -> Value toEncoding :: DropInconsistentMetadata -> Encoding toJSONList :: [DropInconsistentMetadata] -> Value toEncodingList :: [DropInconsistentMetadata] -> Encoding |
data AllowInconsistentMetadata Source #
Instances
Eq 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 # | |
FromJSON AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser AllowInconsistentMetadata parseJSONList :: Value -> Parser [AllowInconsistentMetadata] | |
ToJSON AllowInconsistentMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: AllowInconsistentMetadata -> Value toEncoding :: AllowInconsistentMetadata -> Encoding toJSONList :: [AllowInconsistentMetadata] -> Value toEncodingList :: [AllowInconsistentMetadata] -> Encoding |
data ReplaceMetadataV1 Source #
Replace metadata either with or without metadata sources.
Instances
Eq ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadataV1 -> ReplaceMetadataV1 -> Bool # (/=) :: ReplaceMetadataV1 -> ReplaceMetadataV1 -> Bool # | |
FromJSON ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadataV1 parseJSONList :: Value -> Parser [ReplaceMetadataV1] | |
ToJSON ReplaceMetadataV1 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadataV1 -> Value toEncoding :: ReplaceMetadataV1 -> Encoding toJSONList :: [ReplaceMetadataV1] -> Value toEncodingList :: [ReplaceMetadataV1] -> Encoding |
data ReplaceMetadataV2 Source #
Replace metadata while allowing for inconsitency in the metadata object.
Instances
Eq ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadataV2 -> ReplaceMetadataV2 -> Bool # (/=) :: ReplaceMetadataV2 -> ReplaceMetadataV2 -> Bool # | |
FromJSON ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadataV2 parseJSONList :: Value -> Parser [ReplaceMetadataV2] | |
ToJSON ReplaceMetadataV2 Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadataV2 -> Value toEncoding :: ReplaceMetadataV2 -> Encoding toJSONList :: [ReplaceMetadataV2] -> Value toEncodingList :: [ReplaceMetadataV2] -> Encoding |
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
Eq ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: ReplaceMetadata -> ReplaceMetadata -> Bool # (/=) :: ReplaceMetadata -> ReplaceMetadata -> Bool # | |
FromJSON ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser ReplaceMetadata parseJSONList :: Value -> Parser [ReplaceMetadata] | |
ToJSON ReplaceMetadata Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: ReplaceMetadata -> Value toEncoding :: ReplaceMetadata -> Encoding toJSONList :: [ReplaceMetadata] -> Value toEncodingList :: [ReplaceMetadata] -> Encoding |
data WebHookUrl Source #
Instances
Eq WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: WebHookUrl -> WebHookUrl -> Bool # (/=) :: WebHookUrl -> WebHookUrl -> Bool # | |
FromJSON WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser WebHookUrl parseJSONList :: Value -> Parser [WebHookUrl] | |
ToJSON WebHookUrl Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: WebHookUrl -> Value toEncoding :: WebHookUrl -> Encoding toJSONList :: [WebHookUrl] -> Value toEncodingList :: [WebHookUrl] -> Encoding |
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
Eq TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types (==) :: TestWebhookTransform -> TestWebhookTransform -> Bool # (/=) :: TestWebhookTransform -> TestWebhookTransform -> Bool # | |
FromJSON TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types parseJSON :: Value -> Parser TestWebhookTransform parseJSONList :: Value -> Parser [TestWebhookTransform] | |
ToJSON TestWebhookTransform Source # | |
Defined in Hasura.RQL.DDL.Metadata.Types toJSON :: TestWebhookTransform -> Value toEncoding :: TestWebhookTransform -> Encoding toJSONList :: [TestWebhookTransform] -> Value toEncodingList :: [TestWebhookTransform] -> Encoding |