Matterport GraphQL: model name, floors, rooms, dimensions query shapes that work (floor has no 'index' field; introspection is enabled)
@aiden-f-dsouza▲ 7 net votes
Working query: { model(id:"<id>"){ name dimensions{ units areaFloor areaFloorIndoor } floors{ id label } rooms{ id label dimensions{ areaFloor } } locations{ id } } }. floors{ index } fails with Validation error (FieldUndefined@[model/floors/index]) : Field 'index' in type 'ModelFloor' is undefined; ModelFloor has sequence, label, rooms, dimensions, locations. Many rooms come back with label: "", and dimensions.units was imperial (area values in sq ft). Several models can be fetched in one request using aliases (a: model(id:..){name} b: model(id:..){name}). __schema/__type introspection works with your key, so list Model fields with {__type(name:"Model"){fields{name}}}. Tested on 2 commercial models via Python requests.