schema.collections¶
Schema file¶
type |
object |
||
properties |
|||
|
The id of the template to use for this file |
||
type |
string |
||
|
The variables and their values to be replaced from the template |
||
type |
object |
||
additionalProperties |
|||
|
The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files. |
||
type |
array |
||
items |
type |
string |
|
|
If the value is set to true, manual editing of this file should be avoided, as the composer will override the value in the next generation. |
||
type |
boolean |
||
|
The id of the collection module |
||
type |
string |
||
|
The collection name |
||
type |
string |
||
|
MongoDB expression that represents the filters that can be applied to this collection. |
||
type |
array |
||
items |
|||
|
The indexes to build on the Mongo Database for the collection |
||
type |
array |
||
items |
|||
|
The list of fields that must be incremented automatically when inserting a new element. This fields must be type integer |
||
type |
array |
||
items |
type |
string |
|
|
The list of fields that cannot have duplicates values. This only applies to values that are arrays |
||
type |
array |
||
items |
type |
string |
|
|
When set as true, each operation on an entry of this collection is reported inside the collections_history collection. This allows to get a previous state of a collection entry. |
||
type |
boolean |
||
default |
True |
||
|
Time to live (TTL) in seconds of an entry before it is fully removed from the database after it was deleted. When deleting an entry with a delete request, the flag __is_active is set to false, making this entry not appear in request. If value is 0, the entry is never fully deleted. |
||
type |
integer |
||
default |
0 |
||
additionalProperties |
False |
CollectionFilter¶
type |
object |
|
properties |
||
|
A reference to this collection filter. |
|
type |
string |
|
|
MongoDB expression that represents the filter to apply. |
|
additionalProperties |
False |
IndexConfigurationEntity¶
type |
object |
|
properties |
||
|
The name of the index |
|
type |
string |
|
|
The Mongo expression used for indexing. See https://docs.mongodb.com/manual/indexes/ for more information. |
|
|
Create the indexes only the document when the field exist |
|
type |
boolean |
|
default |
False |
|
|
Partial filter expression used to filter the elements that are affected by this index |
|
additionalProperties |
False |