Skip to main content

gameModelSeed

Bulk-create game-model definitions (container types, property defs, functions) and upsert instances (containers + edges) in one transaction — used to initialize or import a model. Seed containers bind as seed: + tempId and re-seed maps tempId to the existing id (containersCreated increments only on insert). Requires app-admin ('manage_apps').

gameModelSeed(
input: SeedGameModelInput!
): GmSeedResult!

Arguments

gameModelSeed.input ● SeedGameModelInput! non-null input

The app, an optional target session for instances, and arrays of container types, property defs, functions, containers, and edges to create.

Type

GmSeedResult object

Summary of what a gameModelSeed call created. containersCreated / edgesCreated count new rows only; idMapJson still maps every tempId, including existing containers on re-seed.