Operations

Functions in JSONexus

JSONexus provides various functions to manipulate and query data in the database.

1. Insert

Insert a new document into a collection.


 db.insert('users', {'name': 'Alice', 'age': 30, 'email': 'alice@example.com'})
    

2. Find

Find documents that match a specified query.


result = db.find('users', {'age': {'_op': '$eq', '_value': 35}})
    

3. Update

Update documents that match a specified query.


db.update('users', {"age": {'_op': '$eq', '_value': 23}}, {"job": "Junior DEV"}

4. Delete

Delete documents that match a specified query.

5. Count

Count the number of documents in a collection.

6. Get Collection

Get all documents in a collection.

7. Get Document

Get a single document from a collection.

8. Drop Collection

Drop a collection from the database.

9. Insert Many

Insert multiple documents into a collection.

10. Additional Resources

Refer to the documentation for detailed usage instructions, API reference, and examples.

Last updated