From 0ec6a43816a9f8052cfd0c479919147f56f95644 Mon Sep 17 00:00:00 2001 From: Tiago Rodrigues Date: Wed, 6 Apr 2016 11:16:14 +0200 Subject: [PATCH] docs: Document includes property on getEntries response Fixes #69 --- lib/entities/entry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/entities/entry.js b/lib/entities/entry.js index 9650d4643..181a5c678 100644 --- a/lib/entities/entry.js +++ b/lib/entities/entry.js @@ -31,6 +31,7 @@ export function wrapEntry (data) { * @prop {number} limit * @prop {Array} items * @prop {Array=} errors - Array of errors that might occur when retrieving entries. + * @prop {Object=} includes - Object with arrays of includes for Entries and Assets. This will be present if resolveLinks is on, and any linked entries or assets exist. Those links will be resolved in the Entries present in the items array, but they are also present here in raw form. * @prop {function(): Object} toPlainObject() - Returns this Entry collection as a plain JS object * @prop {function(?function=, space=): Object} stringifySafe(replacer,space) - Stringifies the entry collection, accounting for circular references. Circular references will be replaced with just a Link object, with a circular property set to true. See MDN and json-stringify-safe for more details on the arguments this method can take. */