You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* doc.$assertPopulated('author'); // does not throw
4422
4422
* doc.$assertPopulated('other path'); // throws an error
4423
4423
*
4424
+
* // Manually populate and assert in one call. The following does
4425
+
* // `doc.$set({ likes })` before asserting.
4426
+
* doc.$assertPopulated('likes', { likes });
4424
4427
*
4425
-
* @param {String|String[]} paths
4428
+
*
4429
+
* @param {String|String[]} path path or array of paths to check. `$assertPopulated` throws if any of the given paths is not populated.
4430
+
* @param {Object} [values] optional values to `$set()`. Convenient if you want to manually populate a path and assert that the path was populated in 1 call.
0 commit comments