Tc BOM Structure Get Recursive: Flattened BOM output

This example shows the flattened output document that returns every node of a BOM in a single document array.

In case the Snap is configured to provide a flatten structure. All structure nodes wil be provided in a document array. Each node with its child nodes (one level) in a sub document named as

“StructureChildren_“ + .

[
  {
    "result": [
      {
        "_id": "TC*Part Revision*null***QGGAwQey7hAnmD",
        "object_string": "052147/A;1-TopNode",
        "UID": "QGGAwQey7hAnmD",
        "StructureChildren_AnyStatus;Working": [
          {
            "_id": "TC*Part Revision*null***QWFAwQey7hAnmD",
            "object_string": "052148/A;1-SubNode#1",
            "UID": "QWFAwQey7hAnmD",
            "_rel": {
              "_id": "TC*BOMLine*null***BOM::59639",
              "object_string": "052148/A;1-SubNode#1 x 1",
              "UID": "BOM::59639",
              "_rel_role": "StructureChildren",
              "_rel_name": "Any Status; Working(CAD-Modified"
            }
          },
          {
            "_id": "TC*Part Revision*null***QeJAwQey7hAnmD",
            "object_string": "052149/A;1-SubNode#2",
            "UID": "QeJAwQey7hAnmD",
            "_rel": {
              "_id": "TC*BOMLine*null***BOM::59641",
              "object_string": "052149/A;1-SubNode#2 x 1",
              "UID": "BOM::59641",
              "_rel_role": "StructureChildren",
              "_rel_name": "Any Status; Working(CAD-Modified"
            }
          }
        ]
      },
      {
        "_id": "TC*Part Revision*null***QWFAwQey7hAnmD",
        "object_string": "052148/A;1-SubNode#1",
        "UID": "QWFAwQey7hAnmD",
        "StructureChildren_AnyStatus;Working": [
        ]
      },
      {
        "_id": "TC*Part Revision*null***QeJAwQey7hAnmD",
        "object_string": "052149/A;1-SubNode#2",
        "UID": "QeJAwQey7hAnmD",
        "StructureChildren_AnyStatus;Working": [
          {
            "_id": "TC*Part Revision*null***QyDAwQey7hAnmD",
            "object_string": "052150/A;1-SubNode#3",
            "UID": "QyDAwQey7hAnmD",
            "_rel": {
              "_id": "TC*BOMLine*null***BOM::59643",
              "object_string": "052150/A;1-SubNode#3 x 1",
              "UID": "BOM::59643",
              "_rel_role": "StructureChildren",
              "_rel_name": "Any Status; Working(CAD-Modified"
            }
          }
        ]
      },
      {
        "_id": "TC*Part Revision*null***QyDAwQey7hAnmD",
        "object_string": "052150/A;1-SubNode#3",
        "UID": "QyDAwQey7hAnmD",
        "StructureChildren_AnyStatus;Working": [
        ]
      }
    ],
    "original": {
      "_id": "TC*Part Revision*null***QGGAwQey7hAnmD",
      "object_string": "052147/A;1-TopNode",
      "UID": "QGGAwQey7hAnmD"
    }
  }
]