Views

Views are stored in the views collection (along with folders) and are structured as follows.

{
_id: <ObjectId>,
parent: <ObjectId> or "root",
name: <string>,
type: "view" (as opposed to "folder"),
plots: [
{
logs: [
{id: <ObjectId>, tags: [<tag index>, <tag index>, ...]},
...
]
},
...
],
stats: [], // TBD
created_at: <Date>,
updated_at: <Date>
}