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
4418
4418
* doc.$assertPopulated('other path'); // throws an error
4419
4419
*
4420
+
* // Manually populate and assert in one call. The following does
4421
+
* // `doc.$set({ likes })` before asserting.
4422
+
* doc.$assertPopulated('likes', { likes });
4420
4423
*
4421
-
* @param {String|String[]} path
4424
+
*
4425
+
* @param {String|String[]} path path or array of paths to check. `$assertPopulated` throws if any of the given paths is not populated.
4426
+
* @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