Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created January 14, 2018 07:19
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 johndowns/e15d673d794f3370fdc60c6e4f563dc9 to your computer and use it in GitHub Desktop.
Save johndowns/e15d673d794f3370fdc60c6e4f563dc9 to your computer and use it in GitHub Desktop.
var collection = getContext().getCollection();
var allDocumentsInCollection = collection.readDocuments(collection.getSelfLink());
var document = collection.readDocument(documentLink);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment