Announcement Announcement Module
Collapse
No announcement yet.
Setting collection on MongoItemReader? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting collection on MongoItemReader?

    The MongoItemWriter supports explicitely setting the collection to be written too.

    The MongoItemReader does not support setting a collection to be read from.

    Is this a conscious design decision? If yes, what is the reasoning behind this decision?

    Thanks. Thomas

  • #2
    It was expected that the collection to be queried from would be part of the query provided in the Reader. On the write side, you don't have a query to obtain that information from.

    Comment


    • #3
      That makes sense. Thank you for the answer.

      Comment


      • #4
        Is it possible to do this via the query?

        We are trying to get out raw JSON for an entire collection ie tpye = String, query = {}. I don't think its possible to set the collection in the query - there needs to be an option on the MongoItemReader to do this.

        Comment

        Working...
        X