Skip to content

Instantly share code, notes, and snippets.

@jgoldhammer
Last active October 17, 2016 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgoldhammer/2ff5df55407c79c3240f318873888b00 to your computer and use it in GitHub Desktop.
Save jgoldhammer/2ff5df55407c79c3240f318873888b00 to your computer and use it in GitHub Desktop.
// 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