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

Hasura.RQL.DDL.Schema.Catalog

Description

Functions for fetching and updating @Metadata in the catalog.

Synopsis

Documentation

setMetadataInCatalog :: MetadataResourceVersion -> Metadata -> TxE QErr MetadataResourceVersion Source #

Check that the specified resource version matches the currently stored one, and...

  • If so: Update the metadata and bump the version
  • If not: Throw a 409 error