graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
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
FromJSON ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

ToJSON ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Generic ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Associated Types

type Rep ClearMetadata :: Type -> Type #

Show ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Eq ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep ClearMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep ClearMetadata = D1 ('MetaData "ClearMetadata" "Hasura.RQL.DDL.Metadata.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "ClearMetadata" 'PrefixI 'False) (U1 :: Type -> Type))

data ReloadSpec a Source #

Constructors

RSReloadAll 
RSReloadList (HashSet a) 

Instances

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

Defined in Hasura.RQL.DDL.Metadata.Types

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

Defined in Hasura.RQL.DDL.Metadata.Types

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

Defined in Hasura.RQL.DDL.Metadata.Types

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 #

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

  • _rmReloadRemoteSchemas :: ReloadRemoteSchemas
     
  • _rmReloadSources :: ReloadSources
     
  • _rmRecreateEventTriggers :: ReloadSources

    Provides a way for the user to allow to explicitly recreate event triggers for some or all the sources. This is useful when a user may have fiddled with the SQL trigger in the source and they'd simply want the event trigger to be recreated without deleting and creating the event trigger. By default, no source's event triggers will be recreated.

  • _rmReloadDataConnectors :: ReloadDataConnectors
     

data DumpInternalState Source #

Undocumented Metadata API action which serializes the entire SchemaCache.

Constructors

DumpInternalState 

Instances

Instances details
FromJSON DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

ToJSON DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Generic DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Associated Types

type Rep DumpInternalState :: Type -> Type #

Show DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Eq DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep DumpInternalState Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep DumpInternalState = D1 ('MetaData "DumpInternalState" "Hasura.RQL.DDL.Metadata.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DumpInternalState" 'PrefixI 'False) (U1 :: Type -> Type))

data GetInconsistentMetadata Source #

Instances

Instances details
FromJSON GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

ToJSON GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Generic GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Associated Types

type Rep GetInconsistentMetadata :: Type -> Type #

Show GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Eq GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep GetInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep GetInconsistentMetadata = D1 ('MetaData "GetInconsistentMetadata" "Hasura.RQL.DDL.Metadata.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "GetInconsistentMetadata" 'PrefixI 'False) (U1 :: Type -> Type))

data DropInconsistentMetadata Source #

Instances

Instances details
FromJSON DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

ToJSON DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Generic DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Associated Types

type Rep DropInconsistentMetadata :: Type -> Type #

Show DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

Eq DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep DropInconsistentMetadata Source # 
Instance details

Defined in Hasura.RQL.DDL.Metadata.Types

type Rep DropInconsistentMetadata = D1 ('MetaData "DropInconsistentMetadata" "Hasura.RQL.DDL.Metadata.Types" "graphql-engine-1.0.0-inplace" 'False) (C1 ('MetaCons "DropInconsistentMetadata" 'PrefixI 'False) (U1 :: Type -> Type))

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.