Skip to content

ObjectId #1

Description

@bmaschio

@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

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions