Spring
Why Spring
Overview
  • Trending
  • Generative AI Cloud
  • Architecture Patterns
  • Microservices Reactive Event Driven
  • Application Types
  • Web Applications Serverless Batch
    Learn
  • Getting Started
  • Quickstart Guides
  • Academy
  • Courses Get Certified
    Projects
    Overview
  • Projects
  • Spring Boot Spring Framework Spring Cloud Spring AI Spring Data Spring Integration Spring Batch Spring Security
  • Foundational Projects
  • Micrometer Reactor
  • Development Tools
  • Spring Tools Spring Initializr
    Resources
    Blog Release Calendar Version Mappings Release Highlights Security Advisories
  • GitHub Orgs
  • Spring Projects Spring Cloud
    Community
    Overview Events Authors
    Enterprise
    Overview Long-term Support Automated Upgrades Governance and Compliance Modern App Development
    Spring Data MongoDB 5.0.7
      • Overview
        • Upgrading Spring Data
        • Migration Guides
          • Migration Guide from 2.x to 3.x
          • Migration Guide from 3.x to 4.x
          • Migration Guide from 4.x to 5.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
        • MongoDB Search
        • Encryption
        • Ahead of Time Optimizations
      • Repositories
        • Core concepts
        • Defining Repository Interfaces
        • MongoDB Repositories
        • Spring Data Extensions
        • Creating Repository Instances
        • Defining Query Methods
        • MongoDB-specific Query Methods
        • Vector Search
        • 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

    For the latest stable version, please use Spring Data MongoDB 5.1.1!

    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
    • Migration Guide from 4.x to 5.x
    • Spring Data Commons
      • 4.1.1
      • 4.0.7
      • 3.5.13
      • 4.2.0-M2
      • 4.2.0-SNAPSHOT
      • 4.1.2-SNAPSHOT
      • 4.0.8-SNAPSHOT
      • 3.5.14-SNAPSHOT
    • Spring Data MongoDB
      • 5.1.1
      • 5.0.7
      • 4.5.13
      • 5.2.0-M2
      • 5.2.0-SNAPSHOT
      • 5.1.2-SNAPSHOT
      • 5.0.8-SNAPSHOT
      • 4.5.14-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