@klag @DaniloSorano
Hi guys
I need to modify the way the connector handles the mongoDB ObjectId
At moment the connector places the value of the ObjectId in the root of the Jolie return value
This creates a bit of problems when we want work with cross-collections references when we want to handle one to many
So I am working on this idea that goes like this
- to set the document specific ID
document.("__id") ="somevalue"
document.("__id").('@type') = "ObjectId"
2 to set a reference to an ObjectID
document.node[0] = "reference to some ObjectId"
document..node[0] .('@type') = "ObjectId"
document.node[1] = "reference to some ObjectId1"
document..node[1] .('@type') = "ObjectId"
What do you think?
Balint
@klag @DaniloSorano
Hi guys
I need to modify the way the connector handles the mongoDB ObjectId
At moment the connector places the value of the ObjectId in the root of the Jolie return value
This creates a bit of problems when we want work with cross-collections references when we want to handle one to many
So I am working on this idea that goes like this
2 to set a reference to an ObjectID
What do you think?
Balint