Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 43 additions & 6 deletions packages/i18n/src/locales/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,21 @@ const translations = {
description: 'result of the last line evaluated; use to further iterate'
},
exit: {
description: 'Quit the MongoDB shell with .exit'
description: 'Quit the MongoDB shell with exit/exit()/.exit'
},
quit: {
description: 'Quit the MongoDB shell with quit/quit()'
},
show: {
description: '\'show databases\': Print a list of all available databases. \n\'show-collections\': Print a list of all collections for current database'
},
connect: {
description: 'Create a new connection and return the Database object. Usage: connect(URI, username [optional], password [optional])',
link: 'https://docs.mongodb.com/manual/reference/method/connect'
},
Mongo: {
description: 'Create a new connection and return the Mongo object. Usage: new Mongo(URI, options [optional])',
link: 'https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo'
}
}
}
Expand Down Expand Up @@ -155,7 +166,10 @@ const translations = {
link: 'https://docs.mongodb.com/manual/reference/method/cursor.toArray',
description: 'The toArray() method returns an array that contains all the documents from a cursor. The method iterates completely the cursor, loading all the documents into RAM and exhausting the cursor.',
example: 'db.collection.aggregate(pipeline, options).toArray()'
}
},
pretty: {
description: 'Deprecated. The shell provides auto-formatting so this method is no longer useful'
}
}
}
},
Expand Down Expand Up @@ -1360,10 +1374,7 @@ const translations = {
},
// don't document since everything is currently pretty printed
pretty: {
link: '',
description: '',
example: '',
parameters: {}
description: 'Deprecated. The shell provides auto-formatting so this method is no longer useful'
},
readConcern: {
link: 'https://docs.mongodb.com/manual/reference/method/cursor.readConcern',
Expand Down Expand Up @@ -1491,6 +1502,12 @@ const translations = {
description: 'Removes the current database, deleting the associated data files.',
example: 'db.dropDatabase()',
parameters: {}
},
getMongo: {
link: 'https://docs.mongodb.com/manual/reference/method/db.getMongo/',
description: 'Returns the current database connection',
example: 'connection = db.getMongo()',
parameters: {}
}
}
}
Expand Down Expand Up @@ -1532,6 +1549,15 @@ const translations = {
}
}
},
ExplainableCursor: {
iteration: {
'no-cursor': 'no cursor',
'type-it-for-more': 'Type "it" for more'
},
help: {
description: 'Explainable Cursor. See the Cursor class help methods for more information'
}
},
ReplicaSet: {
help: {
description: 'Replica Set Class'
Expand All @@ -1541,6 +1567,17 @@ const translations = {
help: {
description: 'The Shard Class'
}
},
Mongo: {
help: {
description: 'The Mongo Class. Represents a connection to a server',
link: 'https://docs.mongodb.com/manual/reference/method/Mongo/#Mongo'
},
attributes: {
getDB: {
description: 'Returns the specified Database of the Mongo object.'
}
}
}
}
},
Expand Down