Last active
October 17, 2016 19:35
-
-
Save jgoldhammer/2ff5df55407c79c3240f318873888b00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check if the company home node is a favorite of the current user | |
print(favorites.isFavorite(repository.getCompanyHome())); | |
// get all favorites of the current user with start =0 and limit 20 | |
print(favorites.getFavorites(0,20)); | |
// add the company home node as favorite of the user | |
favorites.add(repository.getCompanyHome()); | |
print(favorites.getFavorites(0,20)); | |
// check if the company home node is a favorite of the current user | |
print(favorites.isFavorite(repository.getCompanyHome())); | |
// remove the company home node as favorite of the user | |
favorites.remove(repository.getCompanyHome()); | |
// check if the company home node is a favorite of the current user | |
print(favorites.isFavorite(repository.getCompanyHome())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment