I’m trying to achieve the following:
Step1: Querying an API to receive JSON Documents (restaurant delivery orders)
It looks like this (pretty good to me):
Step 2: I want to record each order individually in a Mongo database.
For this I’m iterating on the order array:
And then i tried to insert each document (collection ?) in a mongo collection:
-The connection is OK
-But i don’t want really to establish a data structure, as it could change (NoSql), so I have just made a text structure in which i’m placing a field from the iterator (because it does not show me a bundle). The result is that it is creating the document in Mongo, but only with one field.
Data structure:
Mongo configuration:
How to solve this so that I can have exactly what i’m querying from the API to MongoDB document.
Thanks a lot