diff --git a/docs/queries.md b/docs/queries.md index 2753726fbe7..1a9706d3c86 100644 --- a/docs/queries.md +++ b/docs/queries.md @@ -62,7 +62,7 @@ query.select('name occupation'); // execute the query at a later time const person = await query.exec(); - // Prints "Space Ghost is a talk show host." +// Prints "Space Ghost is a talk show host." console.log('%s %s is a %s.', person.name.first, person.name.last, person.occupation); ``` diff --git a/docs/schematypes.md b/docs/schematypes.md index 87af7ad4c0e..d4f90a6a014 100644 --- a/docs/schematypes.md +++ b/docs/schematypes.md @@ -607,7 +607,7 @@ const authorSchema = new Schema({ const Author = mongoose.model('Author', authorSchema); -const bookSchema = new Schema({ +const bookSchema = new Schema({ authorId: { type: Schema.Types.UUID, ref: 'Author' } }); const Book = mongoose.model('Book', bookSchema); diff --git a/docs/tutorials/ssl.md b/docs/tutorials/ssl.md index c2537799ed0..43be1971b7a 100644 --- a/docs/tutorials/ssl.md +++ b/docs/tutorials/ssl.md @@ -105,10 +105,10 @@ To connect to a MongoDB Atlas cluster using X.509 authentication the correct opt ```javascript const url = 'mongodb+srv://xyz.mongodb.net/test?authSource=%24external&authMechanism=MONGODB-X509'; await mongoose.connect(url, { - sslValidate: true, - tlsCertificateKeyFile: '/path/to/certificate.pem', - authMechanism: 'MONGODB-X509', - authSource: '$external' + sslValidate: true, + tlsCertificateKeyFile: '/path/to/certificate.pem', + authMechanism: 'MONGODB-X509', + authSource: '$external' }); ```