import Since from '@components/shared/Since.astro' import RailroadDiagram from '@components/RailroadDiagram.astro' import Tabs from '@components/Tabs/Tabs.astro' import TabItem from '@components/Tabs/TabItem.astro'

ALTER CONFIG statement

The ALTER CONFIG statement can be used to modify an existing defined config.

Statement syntax

SurrealQL Syntax

ALTER CONFIG [ IF EXISTS ]
( API
[ MIDDLEWARE @function(...), ... ]
PERMISSIONS [ NONE | FULL | @expression ]
| GRAPHQL
TABLES [ AUTO | NONE | INCLUDE @table, ... | EXCLUDE @table, ... ]
FUNCTIONS [ AUTO | NONE | INCLUDE @function, ... | EXCLUDE @function, ... ]
[ DEPTH @integer ]
[ COMPLEXITY @integer ]
[ INTROSPECTION NONE ]
| DEFAULT
NAMESPACE @namespace
DATABASE @database
)
[ COMMENT @string | DROP COMMENT ]

Example usage

DEFINE CONFIG GRAPHQL TABLES AUTO FUNCTIONS AUTO;

ALTER CONFIG GRAPHQL FUNCTIONS NONE;