Expose graph repository methods to JS