Spring
Why Spring
Overview Microservices Reactive Event Driven Cloud Web Applications Serverless Batch
Learn
Overview Quickstart Guides Blog
Projects
Overview Spring Boot Spring Framework Spring Cloud Spring Cloud Data Flow Spring Data Spring Integration Spring Batch Spring Security View all projects
  • DEVELOPMENT TOOLS
  • Spring Tools 4 Spring Initializr
    Academy
    Courses Get Certified
    Solutions
    Overview Spring Runtime Spring Consulting Spring Academy For Teams Security Advisories
    Community
    Overview Events Team
    Spring Data MongoDB 4.3.12-SNAPSHOT
      • Overview
        • Upgrading Spring Data
        • Migration Guides
          • Migration Guide from 2.x to 3.x
          • Migration Guide from 3.x to 4.x
      • MongoDB Support
        • Requirements
        • Getting Started
        • Connecting to MongoDB
        • Template API
          • Configuration
          • Index and Collection Management
          • Saving, Updating, and Removing Documents
          • Querying Documents
          • Counting Documents
          • Aggregation Framework Support
        • GridFS Support
        • Object Mapping
          • JSON Schema
          • Type based Converter
          • Property Converters
          • Unwrapping Types
          • Object References
          • Index Creation
        • Value Expressions Fundamentals
        • Lifecycle Events
        • Auditing
        • Sessions & Transactions
        • Change Streams
        • Tailable Cursors
        • Sharding
        • Encryption (CSFLE)
      • Repositories
        • Core concepts
        • Defining Repository Interfaces
        • MongoDB Repositories
        • Creating Repository Instances
        • Defining Query Methods
        • MongoDB-specific Query Methods
        • MongoDB-specific Data Manipulation Methods
        • Projections
        • Custom Repository Implementations
        • Publishing Events from Aggregate Roots
        • Null Handling of Repository Methods
        • CDI Integration
        • Repository query keywords
        • Repository query return types
      • Observability
        • Conventions
        • Metrics
        • Spans
      • Kotlin Support
        • Requirements
        • Null Safety
        • Extensions
        • Coroutines
      • Javadoc
      • Wiki
    Edit this Page GitHub Project Stack Overflow
    • Spring Data MongoDB
    • Overview
    • Migration Guides

    This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Data MongoDB 4.4.5!

    Migration Guides

    This section contains version-specific migration guides explaining how to upgrade between two versions.

    Section Summary

    • Migration Guide from 2.x to 3.x
    • Migration Guide from 3.x to 4.x
    • Spring Data Commons
      • 3.4.5
      • 3.3.11
      • 3.2.12
      • 4.0.0-M2
      • 3.5.0-RC1
      • 4.0.0-SNAPSHOT
      • 3.5.0-SNAPSHOT
      • 3.4.6-SNAPSHOT
      • 3.3.12-SNAPSHOT
    • Spring Data MongoDB
      • 4.4.5
      • 4.3.11
      • 4.2.12
      • 5.0.0-M2
      • 4.5.0-RC1
      • 5.0.0-SNAPSHOT
      • 4.5.0-SNAPSHOT
      • 4.4.6-SNAPSHOT
      • 4.3.12-SNAPSHOT
    • Related Spring Documentation
      • Spring Framework
      • Spring Data
        • Spring Data Cassandra
        • Spring Data Commons
        • Spring Data Couchbase
        • Spring Data Elasticsearch
        • Spring Data JPA
        • Spring Data KeyValue
        • Spring Data LDAP
        • Spring Data MongoDB
        • Spring Data Neo4j
        • Spring Data Redis
        • Spring Data JDBC & R2DBC
        • Spring Data REST
      • Spring GraphQL
    • All Docs...
    Spring

    Copyright © 2005 - Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
    Terms of Use • Privacy • Trademark Guidelines • Thank you • Your California Privacy Rights • Cookie Settings

    Apache®, Apache Tomcat®, Apache Kafka®, Apache Cassandra™, and Apache Geode™ are trademarks or registered trademarks of the Apache Software Foundation in the United States and/or other countries. Java™, Java™ SE, Java™ EE, and OpenJDK™ are trademarks of Oracle and/or its affiliates. Kubernetes® is a registered trademark of the Linux Foundation in the United States and other countries. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Windows® and Microsoft® Azure are registered trademarks of Microsoft Corporation. “AWS” and “Amazon Web Services” are trademarks or registered trademarks of Amazon.com Inc. or its affiliates. All other trademarks and copyrights are property of their respective owners and are only mentioned for informative purposes. Other names may be trademarks of their respective owners.

    Search in all Spring Docs