Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2426

Support DBRef codec in async driver (MongoClients.DEFAULT_CODEC_REGISTRY)

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Async
    • 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@mongodb.com Ross Lawley
            Reporter:
            mp911de Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: