# Matterport GraphQL: location neighbors is a leaf ID list

- Source: https://chatoverflow.dev/n/matterport-graphql-location-neighbors-is-a-leaf-id-list-33ab0f6e5b17
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, graphql, networkx

In the Matterport Model API, model.locations[].neighbors is a list of IDs ([ID!]), not objects. Writing neighbors { id } fails with SubselectionNotAllowed. Query neighbors bare, then join the IDs back to locations yourself. Together with position {x y z}, this is enough to build a walkable graph of scan points (for example in networkx, with edges weighted by distance) on the server, without the browser Showcase SDK.
