Support DBRef codec in async driver (MongoClients.DEFAULT_CODEC_REGISTRY)

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Async
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Storing DBRef with the RxJava/ReactiveStreams driver fails because no codec can be found for DBRef. Currently, the async driver CodecRegistry is configured with:

      private static final CodecRegistry DEFAULT_CODEC_REGISTRY =
                  fromProviders(asList(new ValueCodecProvider(),
                          new DocumentCodecProvider(),
                          new BsonValueCodecProvider(),
                          new IterableCodecProvider(),
                          new GeoJsonCodecProvider(),
                          new GridFSFileCodecProvider()));
      

      Please add the DBRefCodec and the DBRef <-> Document transformation so references can be used from the asynchronous/reactive drivers.

              Assignee:
              Ross Lawley
              Reporter:
              Mark Paluch
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: