Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14989

[camel-mongodb] Missing ObjectId converter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • camel-mongodb
    • None
    • Unknown

    Description

      When we use default _id document parameter, Mongo assume it's an ObjectId type. If we include a converter we simplify the creation of any route by just adding:

         .convertBodyTo(ObjectId.class)
      

      Attachments

        Issue Links

          Activity

            People

              squakez Pasquale Congiusti
              squakez Pasquale Congiusti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: