Options
Menu

Interface IAutoCreateModelOptions

The configuration that is available when creating a model using the ModelService.openAutoCreate method.

Hierarchy

Index

Properties

collection

collection: string

The collection in which this model will live.

data

The initial contents of the model, either provided directly or as the result of a callback function. This data should be easily serializable.

ephemeral

ephemeral: boolean

id

id: string

The model's ID. If not provided, a UUID will be generated.

Note that model IDs must be unique even across collections!

overrideCollectionWorldPermissions

overrideCollectionWorldPermissions: boolean

Set to true if the permissions set in this object should override those set in the parent collection.

userPermissions

Per-user permissions can be set here, where the key is an existing user's username.

worldPermissions

worldPermissions: IModelPermissions

Generic permissions for this model for all users.