Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-81

Document transformers...

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: None
    • Component/s: None

      I see that code was commited to an unrelated pr:

      23dcf19

      Basically someone commited transform functionality for cursor streams.

      What are some thoughts of adding this functionality everywhere a document is returned:

      findOne(), cursors, streams, etc.

      It'd be pretty rad if so. That way I don't have to "proxy" cursors and such or do double iterations on non-stream cursors.

      This would be pretty handy-dandy for simple object mappers.

      All these node-mongo wrapped libraries make me want to cry... it'd be great if we can find an easier way of either extending this driver also... but that's not related to this issue I posted and is another topic.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            christkv Christian Amor Kvalheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: