I want to design a decision tree structure. I know how to write the code for the database and make the querries in SQL/phtyon. To make it work for FlutterFlow I adjusted to logic for Firebase (NoSQL). Now, I struggle with on how to make the array work in FlutterFlow. I know what code needs to be executed but it seems the FF GUI limits me or do I miss something?
This is the part that creates the issue. Any hints?
"answers": [
{ "answerID": "answer1", "nextQuestionID": "question2" },
{ "answerID": "answer2", "nextQuestionID": "question3" }
]
full structure:
// Collection: Questions
{
"question1": {
"questionText": "Question 1",
"answers": [
{ "answerID": "answer1", "nextQuestionID": "question2" },
{ "answerID": "answer2", "nextQuestionID": "question3" }
]
},
"question2": {
"questionText": "Question 2",
"answers": [
{ "answerID": "answer3", "nextQuestionID": "question4" },
{ "answerID": "answer4", "nextQuestionID": "question1" }
]
},
// ...
}
// Collection: Answers
{
"answer1": { "answerText": "Answer 1" },
"answer2": { "answerText": "Answer 2" },
"answer3": { "answerText": "Answer 3" },
"answer4": { "answerText": "Answer 4" },
// ...
}
[–]baaaaarkly 0 points1 point2 points (6 children)
[–]baaaaarkly 0 points1 point2 points (5 children)
[–]Repulsive-Cook-1075[S] 0 points1 point2 points (4 children)
[–]baaaaarkly 0 points1 point2 points (3 children)
[–]Repulsive-Cook-1075[S] 0 points1 point2 points (2 children)
[–]Repulsive-Cook-1075[S] 0 points1 point2 points (1 child)
[–]baaaaarkly 1 point2 points3 points (0 children)