Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update document.d.ts set function params #13304

Merged
merged 1 commit into from
May 8, 2023

Commits on Apr 20, 2023

  1. Update document.d.ts

    /**
     * Alias for `set()`, used internally to avoid conflicts
     *
     * @param {String|Object} path path or object of key/vals to set
     * @param {Any} val the value to set
     * @param {Schema|String|Number|Buffer|*} [type] optionally specify a type for "on-the-fly" attributes
     * @param {Object} [options] optionally specify options that modify the behavior of the set
     * @param {Boolean} [options.merge=false] if true, setting a [nested path](/docs/subdocs.html#subdocuments-versus-nested-paths) will merge existing values rather than overwrite the whole object. So `doc.set('nested', { a: 1, b: 2 })` becomes `doc.set('nested.a', 1); doc.set('nested.b', 2);`
     * @return {Document} this
     * @method $set
     * @memberof Document
     * @instance
     * @api public
     */
    jeffersonlipsky committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    429f608 View commit details
    Browse the repository at this point in the history