Skip to content

Parse.com introduced an ability to add dynamic schema. This is a simple mongoose / mongo / express based attempt to implement that.

License

Notifications You must be signed in to change notification settings

vibgy/dynamicSchema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamicSchema

Parse.com introduced an ability to add dynamic schema. This is a simple mongoose / mongo / express based attempt to implement that.

Example Schema that you can POST

// POST http://localhost:4444/dataIQ
// JSON Body:
{   
    "name": "LightSensor",
    "schema": {
        "userId": "String",
        "deviceId": "String",
        "companionId": "String",
        "type": {
            "type": "String"
        },
        "createdAt": {
            "type": "Date"
        },
        "updatedAt": {
            "type": "Date"
        },
        "payload": {
            "lux": "Number",
            "timestamp": "Date"
        }
    }
}

About

Parse.com introduced an ability to add dynamic schema. This is a simple mongoose / mongo / express based attempt to implement that.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published