On this page
- Preface
- 1. Learning Spring
- 2. Learning NoSQL and Document databases
- 3. Requirements
- 4. Additional Help Resources
- 5. Following Development
- 6. New & Noteworthy
- 6.1. What’s New in Spring Data MongoDB 2.2
- 6.2. What’s New in Spring Data MongoDB 2.1
- 6.3. What’s New in Spring Data MongoDB 2.0
- 6.4. What’s New in Spring Data MongoDB 1.10
- 6.5. What’s New in Spring Data MongoDB 1.9
- 6.6. What’s New in Spring Data MongoDB 1.8
- 6.7. What’s New in Spring Data MongoDB 1.7
- 7. Dependencies
- 8. Working with Spring Data Repositories
- 8.1. Core concepts
- 8.2. Query methods
- 8.3. Defining Repository Interfaces
- 8.4. Defining Query Methods
- 8.4.1. Query Lookup Strategies
- 8.4.2. Query Creation
- 8.4.3. Property Expressions
- 8.4.4. Special parameter handling
- 8.4.5. Limiting Query Results
- 8.4.6. Repository Methods Returning Collections or Iterables
- 8.4.7. Null Handling of Repository Methods
- 8.4.8. Streaming query results
- 8.4.9. Async query results
- 8.5. Creating Repository Instances
- 8.6. Custom Implementations for Spring Data Repositories
- 8.7. Publishing Events from Aggregate Roots
- 8.8. Spring Data Extensions
- Reference Documentation
- 9. Introduction
- 10. MongoDB support
- 10.1. Getting Started
- 10.2. Examples Repository
- 10.3. Connecting to MongoDB with Spring
- 10.3.1. Registering a Mongo Instance by using Java-based Metadata
- 10.3.2. Registering a Mongo Instance by Using XML-based Metadata
- 10.3.3. The MongoDbFactory Interface
- 10.3.4. Registering a MongoDbFactory Instance by Using Java-based Metadata
- 10.3.5. Registering a MongoDbFactory Instance by Using XML-based Metadata
- 10.4. Introduction to MongoTemplate
- 10.5. Saving, Updating, and Removing Documents
- 10.5.1. How the _id Field is Handled in the Mapping Layer
- 10.5.2. Type Mapping
- 10.5.3. Methods for Saving and Inserting Documents
- 10.5.4. Updating Documents in a Collection
- 10.5.5. “Upserting” Documents in a Collection
- 10.5.6. Finding and Upserting Documents in a Collection
- 10.5.7. Finding and Replacing Documents
- 10.5.8. Methods for Removing Documents
- 10.5.9. Optimistic Locking
- 10.6. Querying Documents
- 10.6.1. Querying Documents in a Collection
- 10.6.2. Methods for Querying for Documents
- 10.6.3. Query Distinct Values
- 10.6.4. GeoSpatial Queries
- 10.6.5. GeoJSON Support
- 10.6.6. Full-text Queries
- 10.6.7. Collations
- 10.6.8. JSON Schema
- 10.6.9. Fluent Template API
- 10.6.10. Type-safe Queries for Kotlin
- 10.6.11. Additional Query Options
- 10.7. Query by Example
- 10.8. Map-Reduce Operations
- 10.9. Script Operations
- 10.10. Group Operations
- 10.11. Aggregation Framework Support
- 10.12. Index and Collection Management
- 10.13. Executing Commands
- 10.14. Lifecycle Events
- 10.15. Entity Callbacks
- 10.16. Exception Translation
- 10.17. Execution Callbacks
- 10.18. GridFS Support
- 10.19. Infinite Streams with Tailable Cursors
- 10.20. Change Streams
- 11. MongoDB Sessions
- 12. MongoDB Transactions
- 13. Reactive MongoDB support
- 14. MongoDB Repositories
- 14.1. Introduction
- 14.2. Usage
- 14.3. Query Methods
- 14.3.1. Repository Delete Queries
- 14.3.2. Geo-spatial Repository Queries
- 14.3.3. MongoDB JSON-based Query Methods and Field Restriction
- 14.3.4. Sorting Query Method results
- 14.3.5. JSON-based Queries with SpEL Expressions
- 14.3.6. Type-safe Query Methods
- 14.3.7. Full-text Search Queries
- 14.3.8. Projections
- 14.3.9. Aggregation Repository Methods
- 14.4. CDI Integration
- 15. Reactive MongoDB repositories
- 16. Auditing
- 17. Mapping
- 18. Kotlin Support
- 19. Cross Store Support
- 20. JMX support
- 21. MongoDB 3.0 Support
- Appendix