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.

data

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

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.