Options
Menu

Interface ICreateModelOptions

The configuration available when creating a model with the ModelService.create or ModelService.openAutoCreate methods.

Hierarchy

Index

Properties

collection

collection: string

The collection in which this model will live.

Optionaldata

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

Optionalid

id: string

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

Note that model IDs must be unique even across collections!

OptionaloverrideCollectionWorldPermissions

overrideCollectionWorldPermissions: boolean

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

OptionaluserPermissions

userPermissions: object

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

Type declaration

OptionalworldPermissions

worldPermissions: ModelPermissions

Generic permissions for this model for all users.