Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. MongoDB
  3. Jongo

Jongo

Apache-2.0Java1.4.0

A Java library that lets you write MongoDB queries using the same syntax as the Mongo shell.

Visit WebsiteGitHubGitHub
588 stars147 forks0 contributors

What is Jongo?

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.

Target Audience

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.

Value Proposition

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.

Overview

Query in Java as in Mongo shell

Use Cases

Best For

  • Migrating MongoDB shell scripts to a Java application
  • Java projects needing simple and direct MongoDB query syntax
  • Developers familiar with MongoDB shell who want to avoid learning a new Java query API
  • Applications requiring object mapping to MongoDB with Jackson serialization
  • Projects where performance comparable to the native MongoDB Java driver is critical
  • Teams looking for a lightweight, open-source MongoDB library for Java

Not Ideal For

  • Projects requiring type-safe, compile-time checked queries (e.g., using QueryDSL or JPA criteria)
  • Applications built on reactive programming models needing native reactive MongoDB driver support
  • Teams heavily invested in other Java ORMs like Hibernate OGM or Spring Data MongoDB with custom features
  • Scenarios where minimizing string-based code to prevent injection vulnerabilities is a priority

Pros & Cons

Pros

Native Query Syntax

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.

Seamless Object Mapping

Integrates Jackson marshalling for saving and retrieving Java objects directly from collections, with support for custom serialization, per the README's 'Object oriented' description.

Driver-Level Performance

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.

Reliable and Tested

Fully open source with comprehensive test coverage and continuous integration, evidenced by CI and codecov badges in the README.

Cons

String-Based Queries

Queries are written as strings, leading to potential runtime errors and lack of compile-time type safety, which can complicate refactoring and debugging.

Jackson Dependency

Default object mapping relies on Jackson, which may not suit projects using other serialization frameworks, requiring extra configuration for custom setups.

Limited Ecosystem

Has a smaller community and fewer framework integrations compared to alternatives like Spring Data MongoDB, limiting third-party support and resources.

Frequently Asked Questions

Quick Stats

Stars588
Forks147
Contributors0
Open Issues5
Last commit4 months ago
CreatedSince 2011

Tags

#object-mapping#database-driver#orm#jackson#query-language#java#nosql#mongodb

Built With

M
MongoDB Java Driver
J
Jackson
J
Java

Links & Resources

Website

Included in

MongoDB2.6k
Auto-fetched 1 hour ago

Related Projects

mongo-java-drivermongo-java-driver

The official MongoDB drivers for Java, Kotlin, and Scala

Stars2,659
Forks1,490
Last commit5 hours ago
MorphiaMorphia

MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver

Stars1,677
Forks450
Last commit2 days ago
Hibernate OGMHibernate OGM

Hibernate OGM - Domain model persistence for NoSQL datastores

Stars324
Forks198
Last commit1 year ago
MongojackMongojack

Mongojack maps Java objects to MongoDB documents. Based on the Jackson JSON mapper, Mongojack allows you to easily handle your mongo objects as POJOs (insert, search by id or by any other field, update).

Stars276
Forks112
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub