MongoDB Query using

Source: Internet
Author: User
Tags mongodb query pack

>Db.jd_58tc_raw.findOne () {"_id":"2659E4E4CAF0504EC4362478E2ED57CA",    "Jdjob" : {        "jobposition":"Residence No. Eighth hire Waiter + pack and board",        "jobsalary":"5000-8000 USD",        "JobType":"Full-time",        "Jobwelfare":"five risk a gold \ \ \ \ \ \ \ \ \ \ \ \ \ Two incomes the end of the week.",        "Jobworkage":"Not Limited",        "skilllist" : [            "Waiter",            "Customer Inquiries"        ],        "certlist" : [            ""        ],        "jobcate":"",        "Jobdesc":"first, male and female waiter recruitment requirements: male and female, 18-30 years old, physical health, a certain sense of service, have experience merit, no experience can be trained. \ n Work content: mainly responsible for customer consultation to help guests order, pay, cleaning and other general services. \ n Working hours: late 18:00--02:00 a weekly rest day. \ n Salary: Basic salary 3800+ Commission +200/days, the same day settlement, package accommodation. \ n-------------------------------------------------------------------------\ n: Bartender Apprentice (Pack and board) \ n Salary: 3500 Commission for trial salary 15% , after the completion of the company will be arranged to obtain intermediate bartender certificate, certificate issued nationwide, \ n working hours: 7 o'clock to 2 o'clock in the morning, package accommodation, weekly rest day, special circumstances require early leave. \ n Work content: To assist the bartender to adjust the daily wine required raw materials preparation, equipment cleaning, understanding of wine (wine, wine, cocktails) modulation method, divided into two types of English and flower-type wine. \ n Promotion pathway: Bartender Intermediate Apprentice-bartender Assistant-Junior bartender-senior bartender-Senior bartender \n================================================\n\n job instructions: \ N1. Job-seekers and employees ' information are 100% confidential and secure the privacy of everyone. \N2: Please bring a copy of my valid ID card + 1-inch photo (each one) during the interview. \N3: Interview Time:: Before the 12:40--5:00 point in the afternoon, the rest of the time to work or rest (interview requires phone appointment)",        "Jobworkloc":"Beijing Xicheng Revival Gate D mouth out",        "Workdemand":"1. Male and female, 18-30 years old, physical health, have a certain sense of service, have experience merit, no experience can be trained",        "Jobdiploma":"Not Limited",        "Jobnum":"5 people",        " Age":"18-30 years old",        "Gender":"male",        "jobmajorlist" : [ ],        "workduty":"1. Assist bartenders to prepare the raw materials for daily wine adjustment, equipment cleaning, understanding of wine (wine, wine, cocktail) modulation method, divided into two types of English and fancy wine blending"    }}>

Find () Two parameters, preceded by the condition, followed by the output value, directly on the code:

> Db.jd_58tc_raw.find ({},{"Jdjob.age":1,"_id":0,"jdjob.jobsalary":1}). Limit (5). Sort ({"Jdjob.age":1}). ToArray () [{"Jdjob" : {            " Age":"15-21 years old",            "jobsalary":"5000-8000 USD"        }    },    {        "Jdjob" : {            " Age":"16-35 years old",            "jobsalary":"3000-5000 USD"        }    },    {        "Jdjob" : {            " Age":"16-35 years old",            "jobsalary":"5000-8000 USD"        }    },    {        "Jdjob" : {            " Age":"16-28 years old",            "jobsalary":"3000-5000 USD"        }    },    {        "Jdjob" : {            "jobsalary":"5000-8000 USD",            " Age":"16-28 years old"        }    }]

MongoDB Query using

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.