Skip to content

ShareDB fields

json
{
  "_id": string           // _id of projectfiles
  "proj": string          // _id of project
  "data": string          // file data in plaintext utf-8
  "buffer": string        // file data in base64 encoding (only present if file data cannot be encoded into utf-8, otherwise "")
  "_type": "http://sharejs.org/types/JSONv0",
  "_v": 1,                // Current file version. For forking, ALWAYS set to 1
  "_m": {
    "ctime": new Date()   // Creation Time in milliseconds
    "mtime": new Date()   // Last Modified Time in milliseconds
  },
  "_o": ObjectID          // ShareDB ObjectID for document
}