Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-133

Ability to add additional fields to a DBRef

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

      As per this StackOverflow question:

      http://stackoverflow.com/questions/3056809/how-to-manually-create-a-dbref-using-pymongo/3059200#3059200

      It would be nice to be able to add additional fields to a DBRef to cache certain values from the document it references.

      Having the additional values passed as kwargs to the DBRef constructor would probably be the best way to achieve this, but having access to an "extra_fields" attribute wouldn't hurt either.

            Assignee:
            mike Michael Dirolf
            Reporter:
            soviut Ian Zamojc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: