help with query

ALESSIA shared this question 4 years ago
Need Answer

good morning ,

how is the syntax for extract from this collection (dictionaries) this fields ("CAT", "AZ" ) from the version 2?


sorry but i don't' know nosql code


{

"_id" : ObjectId("XXX"),

"status" : "active",

"code" : "CAT",

"prototype" : null,

"createdBy" : "YYY",

"modifiedBy" : "AAA",

"creationDate" : ISODate("2017-02-17T12:47:58.353Z"),

"modificationDate" : ISODate("2017-06-01T13:45:10.543Z"),

"version" : 21,

"data" : {

"1" : {

"attributes" : {

"name" : {

"type" : "text",

"code" : "name",

"translatable" : true,

"required" : false,

"unique" : false

}

},

"elements" : {

"AZ" : {

"status" : "active",

"values" : {

"name" : "dictionaries.CAT.values.AZ.name"

},

"code" : "AZ",

"order" : 1

},

"2" : {

"attributes" : {

"name" : {

"type" : "text",

"code" : "name",

"translatable" : true,

"required" : false,

"unique" : false

}

},

"elements" : {

"AZ" : {

"status" : "active",

"values" : {

"name" : "dictionaries.CAT.values.AZ.name"

},

"activationDate" : ISODate("2017-06-01T13:45:10.543Z"),

"activatedBy" : "AAA",

"versionId" : 2,

"comment" : "VVVVVV"

}

},

"latest" : 2

}

Leave a Comment
 
Attach a file