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

Hasura.RQL.DDL.Metadata

Synopsis

Documentation

runClearMetadata :: forall m r. (QErrM m, MonadIO m, CacheRWM m, MetadataM m, MonadMetadataStorageQueryAPI m, MonadBaseControl IO m, MonadReader r m, Has (Logger Hasura) r) => ClearMetadata -> m EncJSON Source #

runReplaceMetadata :: (CacheRWM m, MetadataM m, MonadIO m, MonadMetadataStorageQueryAPI m, MonadReader r m, Has (Logger Hasura) r) => ReplaceMetadata -> m EncJSON Source #

Replace the 'current metadata' with the 'new metadata' The 'new metadata' might come via the 'Import Metadata' in console

processCronTriggersMetadata :: Metadata -> Metadata Source #

Only includes the cron triggers with included_in_metadata set to True

decodeBody :: Maybe ByteString -> Value Source #

Deserialize a JSON or X-WWW-URL-FORMENCODED body from an Request as Value.

jsonToValue :: ByteString -> Maybe Value Source #

Attempt to encode a ByteString as an Aeson Value

formUrlEncodedToValue :: ByteString -> Maybe Value Source #

Quote a ByteString then attempt to encode it as a JSON String. This is necessary for 'x-www-url-formencoded' bodies. They are a list of key/value pairs encoded as a raw ByteString with no quoting whereas JSON Strings must be quoted.

parseEnvTemplate :: Parser [Either Text Text] Source #