IO

When a user successfully updates a document, they receive only the document's _id via Socket.IO. In contrast, administrators receive the entire updated document. This allows different permission levels to access only the data they need.

{
    "collections": {
        "todos": {
            "schema": {...},
            "permissions": {
                "user": {
                    "patch": {
                        ...
                        "io": {
                            "$.user": ["_id"],
                            "admin": true
                        }
                    }
                }
            }
        }
    }
}
Edit this page on Github
© 2025 kav3.com. Crafted with and dedication.