mongodb unset

mongodb unset

db.getCollection(‘contents’).update( {}, { $unset:{ “page”:””, “size”:””, “pub_review” : “”, “contents” : “”, “bookin” : “”, “recommand” : “”, “author_review” : “” } }, {multi:true} )

더보기

c# serialize

var pipeline = new[] { match, unwind, lookup, project, group }; AggregateResult result = collection.Aggregate(pipeline); var aggregate = result.Response.GetValue(0); var aggregateArr = aggregate.AsBsonArray; fpOrderItem.ActiveSheet.Rows.Count = 0; int ttt = 0; foreach (var agg_result in aggregateArr) { var order_record = agg_result[“_id”]; var order_no = order_record[“order_no”].ToString(); var order_list_str = order_record[“order_list”]; var contents_str ...

더보기

mongodb join

db.order_list.aggregate([ { $unwind: “$booklist” }, { $lookup: { from: “contents”, localField: “booklist.isbn”, foreignField: “isbn”, as: “xxxx” } }, { $group:{ _id:{order_no:”$order_no”}, booklist:{ $push:”$xxxx.isbn”, $push:”$xxxx.title” } } } ])   ======================================     db.votes.aggregate([ { $lookup: { from: “users”, localField: “createdBy”, foreignField: “_id”, as: “userYYY” } }, { $unwind: “$userYYY” }, ...

더보기

mongoDB serialize

  public class Zoo { [BsonId] public ObjectId Id { get; set; } public List<Animal> Animals { get; set; } } [BsonDiscriminator(RootClass = true)] [BsonKnownTypes(typeof(Tiger), typeof(Zebra))] public class Animal { [BsonId] public ObjectId Id { get; set; } public string Name { get; set; } } public class Tiger : ...

더보기

Storing TreeView Structures With MongoDB

Storing Tree like Structures With MongoDB Educational repository demonstrating approaches for storing tree structures with NoSQL database MongoDB Background In a real life almost any project deals with the tree structures. Different kinds of taxonomies, site structures etc require modelling of hierarhy relations. In this article I will illustrate using ...

더보기

전문인력

사회적기업 SEIS 통합정보시스템 차수 2018004 사회적목적구분 일자리제공형 사회적기업구분 인증 심사일 2018-08-31 인증일(지정일) 2018-09-04 인증번호(지정번호) 제2018-166호 *조직형태 사회적협동조합 *인증(지정)유형 일자리제공형 *주된 목적 (서비스 수혜 대상) 사업비지원 사업에 의해 개발된 SDI(선택적정보제공) 서비스를 운영, 유지관리하기위한 정보통신분야 전문인력을 채용하여 SDI(선택적정보제공) 서비스를 원할히 서비스하여 도서관 사서 및 교과 담당 교사에게 신간 도서 정보 및 교과 ...

더보기

mongodb recursive

db.files.save({ _id: "root"}) db.files.save({ _id: "src", parent: "root", ancestors: ["root"] } ) db.files.save({ _id: "lib", parent: "root", ancestors: ["root"]} ) db.files.save({ _id: "config.cfg", parent: "root", ancestors: ["root"], size: 2310 }) db.files.save({ _id: "file1.js", parent: "src", ancestors: ["root","src"], size: 5039 }) db.files.save({ _id: "file2.js", parent: "src", ancestors: ["root","src"], size: 1299 }) ...

더보기

This is a unique website which will require a more modern browser to work!

Please upgrade today!