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

[camel-mongodb] Missing ObjectId converter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: camel-mongodb
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: