A Java library that lets you write MongoDB queries using the same syntax as the Mongo shell.
Jongo is a Java library that enables developers to write MongoDB queries using the same syntax as the Mongo shell. It solves the problem of having to learn a separate query API for Java by allowing direct use of MongoDB's native JSON query language. This makes it easier to transition scripts and queries from the shell to Java applications.
Java developers building applications with MongoDB who want to use MongoDB's native query syntax without switching to a different query language or complex ORM.
Developers choose Jongo because it provides a straightforward, high-performance bridge between MongoDB's shell and Java, leveraging the official driver while adding intuitive object mapping and query capabilities.
Query in Java as in Mongo shell
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows copy-paste of MongoDB shell queries into Java strings, eliminating the need to learn a new API, as highlighted in the README's 'Faithful spirit' section.
Integrates Jackson marshalling for saving and retrieving Java objects directly from collections, with support for custom serialization, per the README's 'Object oriented' description.
Built on the official MongoDB Java driver, ensuring performance and reliability comparable to using the driver directly, as stated in the README's 'Wood solid' claim.
Fully open source with comprehensive test coverage and continuous integration, evidenced by CI and codecov badges in the README.
Queries are written as strings, leading to potential runtime errors and lack of compile-time type safety, which can complicate refactoring and debugging.
Default object mapping relies on Jackson, which may not suit projects using other serialization frameworks, requiring extra configuration for custom setups.
Has a smaller community and fewer framework integrations compared to alternatives like Spring Data MongoDB, limiting third-party support and resources.