query API change.

 Implement related resource