Homepage

admin_model_schema_update

Last edit: Nov 01, 2026

Updates a model schema (table) found by physical_file_path (or the deprecated
id) and returns it. Same as admin_table_update. Raises an error when no such schema exists

admin_model_schema_update(
  id: ID
  model_schema: UpdateModelSchemaInputType!
  physical_file_path: String
): ModelSchema

Arguments

id (ID)

Deprecated, use physical_file_path. Id of the schema to update

model_schema (UpdateModelSchemaInputType)

Attributes to change

physical_file_path (String)

Current physical_file_path of the schema to update; takes precedence over id

Type

ModelSchema

Model schema, the former name of a table (app/schema). Deprecated, use Table instead

Questions?

We are always happy to help with any questions you may have.

contact us