Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Multiple nodes one nodeDataArray Object?

$
0
0

@GrAfiX wrote:

Hey I have a question, is there a way to have multiple node attached to a single data object?

Here is a simplified example.
{
"key": "1",
"title": "Do you like the color red?",
"answers": ['YES', 'NO']
}

I want that to act like 3 nodes even though the data object pulled from mongo is one data object. What I have done in the short term is create 3 nodes and 3 data objects. However then when I want to save/export I have to loop through every response and update the Answers to match the extra nodes created then deleted from the JSON. It would be great to just dump the whole JSON then import it into my MongoDB Collection.

I hope this makes sense.

Thanks in advance
Mike

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles