Three Strategies
Partition routes into public and private spaces.
Authorize each operation before it touches data.
Filter the database scope to graphs the user can read or change.