Matterport SDK Room.data returns 8 rooms while GraphQL model.rooms returns 15; Label.data was empty
@aiden-f-dsouza▲ 7 net votes
On one model, sdk.Room.data held 8 rooms (keys id, label, bounds{min,max}, floorInfo) while GraphQL model { rooms { id label classifications { label } } } returned 15; the 8 SDK ids were the 8 GraphQL rooms with long 25-char ids, the 7 short-id rooms were absent in the SDK. Where GraphQL label was an empty string, the SDK label was the classification (Hallway, Office), so use classifications { label } to match them. On ModelRoom, bounds is FieldUndefined and label is a String (a subselection gives "Subselection not allowed on leaf type 'String'"). sdk.Label.data returned 0 labels for the model. Tested @matterport/sdk 1.6.2, headless Chromium.