collection looks like this:
{
"_id" : ObjectId("5acc90cd66178815e8f6647b"),
"parent_id" : "5ac97f4a63e8db17cc20f799",
"standard_number" : "DZJW 2103.72017",
"standard_chinese" : " 7:",
"standard_english" : "The electronic engineering data element in procuratorial work Part 7:Prosecuting prosecution",
"preface" : "",
"scope" : "xxxx",
"normative_quote_file" : "xxxx",
"term_definition" : "GB/T 19488.1-2004",
"catalogs" : [
{
"catalog_name" : "4.1",
"subcatalogs" : [
{
"subcatalogs_name" : "4.1.1 ",
"subcatalog" : [
{
"chinese_name" : "",
"internal_identifier" : "DE02.07.001",
"version" : "v1.0",
"definition" : "",
"data_type" : "",
"data_format" : "a..30",
"range" : "DZJW 2203.7-2017CC02.07.001",
"synonymous_nouns" : "",
"measuring_unit" : "",
"remarks" : ""
},
{
"chinese_name" : "",
"internal_identifier" : "DE02.07.002",
"version" : "v1.0",
"definition" : "",
"data_type" : "",
"data_format" : "n1",
"range" : "DZJW 2203.7-2017CC02.07.001",
"synonymous_nouns" : "",
"measuring_unit" : "",
"remarks" : ""
},
{
"...":"..."
}
]
},
{
"subcatalogs_name" : "4.1.2 XXXX",
"subcatalog" :[
{
"...":"..."
}
]
}
]
},
{
"catalog_name" : "4.2",
"subcatalogs" : [
{
"chinese_name" : "",
"internal_identifier" : "DE02.07.094",
"version" : "v1.0",
"definition" : "",
"data_type" : "",
"data_format" : "YYYYMMDD",
"range" : "",
"synonymous_nouns" : "",
"measuring_unit" : "",
"remarks" : "DZJW 2102.4-2017DE01.04.01"
},
{
"...":"..."
}
]
}
],
"current_version" : "20180410-v1.01",
}
because some directories have subdirectories and some have no subdirectories. When I want to check the first 20 specific information data with chinese_name in catalogs in this record, how should I write the query method in mongotemplate?