Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Persisted format of OneToOneTest#testBidirectionalManyToOne() in MongoDB
{
"_id" : "6866afaf-c5ee-4fee-9821-79b2ae2a63b7",
"husband" : [
"ae25fe38-d532-415c-b12a-4c1f0f4782a8"
],
"name" : "Bea"
}
{
"_id" : "ae25fe38-d532-415c-b12a-4c1f0f4782a8",
"name" : "Alex",
"wife" : "6866afaf-c5ee-4fee-9821-79b2ae2a63b7"
}
{
"_id" : "6866afaf-c5ee-4fee-9821-79b2ae2a63b7",
"husband" : "ae25fe38-d532-415c-b12a-4c1f0f4782a8",
"name" : "Bea"
}
{
"_id" : "ae25fe38-d532-415c-b12a-4c1f0f4782a8",
"name" : "Alex",
"wife" : "6866afaf-c5ee-4fee-9821-79b2ae2a63b7"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment