graphApi method