Homepage

import_models

Last edit: Nov 01, 2026

Imports records in bulk, for example from another instance. Each record is
matched by its id (see _id_remap) and updated, or created when there is no
match. Records that fail are skipped and reported together in one error after
the others are imported

import_models(
  _id_remap: Boolean = true
  _index_rebuild: Boolean = true
  models: [CustomizationImport!]!
): ImportCustomizationsMutationPayload

Arguments

_id_remap (Boolean)

When true, given ids are treated as external ids: objects are matched by
them, new objects get new ids, and references between imported objects are
rewritten to the new ids. When false, given ids are used as the actual ids
and must be integers. Defaults to true

_index_rebuild (Boolean)

When true, the search index is rebuilt in a background job after the import. Defaults to true

models (CustomizationImport)

The records to import

Type

ImportCustomizationsMutationPayload

Autogenerated return type of ImportCustomizationsMutation.

Questions?

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

contact us