Optionally specify depth by resource ID rather than query