Db.createTable
Db.createTable($tableName, $colMap) -> boolean
Description
Create a table in the current database, if it does not exist.
Returns true
if the table was created, and false
if the table already existed.
$wasCreated = Db.createTable('users', { userId: 'int' email: 'varchar(255)' }) //= true