Posts

Showing posts from January 1, 2019

Manhattan Community Board 6

Image
Community Board 6 Manhattan Community Board 6 is a New York City community board, part of the local government apparatus of the city, with responsibility for the East Side of Manhattan from 14th Street to 59th Street. This includes the neighborhoods of Gramercy Park, Stuyvesant Park, Stuyvesant Town, Peter Cooper Village, Rose Hill, Waterside Plaza, Murray Hill, Kips Bay, Turtle Bay, Tudor City, and Sutton Place. [1] The eastern and western borders are the East River and Lexington Avenue, except between 34th Street and 40th Street, where the area extends west to Madison Avenue, and between 20th Street and 22nd Street where it extends west to Park Avenue South. Demographics As of 2000, the Community Board has a population of 136,152, up from 133,748 in 1990 and 127,556 in 1980. Of them (as of 2000), 103,884 (76.3%) are White non Hispanic, 5,241 (3.8%) are African-American, 14,458 (10.6%) Asian or Pacific Islander, 123 (0.1%) American Indian or Native Alaskan, 396 (0.3%) o

中国国家铁路集团有限公司

Image
  「 中国铁路总公司 」重定向至此。關於清朝时期的同名公司,詳見「 中国铁路总公司 (清朝) 」。 body.skin-minerva .mw-parser-output table.infobox caption{text-align:center} 中国国家铁路集团有限公司 China Railway Corporation 中华人民共和国铁路路徽 位于原铁道部机关驻地的中国铁路总公司总部 公司類型 中国中央企业 公司前身 中央人民政府铁道部(1949-1954) 中华人民共和国铁道部(1954-1970) 中华人民共和国交通部(1970-1975) 中华人民共和国铁道部(1975-2013) 中国铁路总公司(2013-2018) 成立 2013年3月14日 代表人物 总经理:陆东福 總部   中华人民共和国北京市海淀区复兴路10号 標語口號 以服务为宗旨 待旅客如亲人 安全优质 兴路强国 [1] 業務範圍   中华人民共和国和国际联运列车 产业 铁路业 服務 铁路运输管理和维护 營業額 ▼ 人民幣9799億元 (2017) [2] 息税前利润 ▼ 人民幣534.56億元 (EBIT+鐵路建設基金收入-水利建設基金支出) (2015) 净利润 ▼ 人民幣負323.55億元 (2015) (含稅後鐵路建設基金收入及利息支出778.16億) 資產管理規模 - 注册资金:人民币10,360亿元 總資產 ▲ 人民幣76,483.87億元 (2017) 資產淨值 ▲ 人民幣48475.65億元 (2017) 主要子公司 18个铁路公司 3个专业运输公司 网站 官方网站 铁路客户服务中心 中国国家铁路集团有限公司 ,是承担中华人民共和国铁路客货运输服务的中央管理国有企业,前身是依《中华人民共和国全民所有制工业企业法》设立的全民所有制工业企业 中国铁路总公司 ,由财政部代表国务院履行出资人职责 [3] [4] 。 中国铁路总公司成立于2013年3月,其前身为中华人民共和国铁道部。现由交通运输部、国家铁路局依法对公司进行行业监管 [5] 。当前,

Sub-document in an array saves as an empty array item if no value is provided on document creation

Image
0 What I want is for a particular field in my schema to be an array with items in it. When I create the document in question, I will not have any array items. Therefore, I expect my document to look like: { notes: } The problem is, I'm getting an array that looks like: { notes: [''] } Querying the notes.length , I get 1, which is problematic for me, because it's essentially an empty array item. This is the code I'm working with: const SubDocumentSchema = function () { return new mongoose.Schema({ content: { type: String, trim: true }, date: { type: Date, default: Date.now } }) } const DocumentSchema = new mongoose.Schema({ notes: { type: [SubDocumentSchema()] } }); const Document = mongooseConnection.m