Friday, 9 June 2017

how to fetch a perticular record? [duplicate]

This question already has an answer here:

i would like fetch the records of this year, which is not containing stop state here is my data can some one help ? thanks in advance , is it possible to achieve by aggregate function ?

{
          "shortMovie":"name"
           "categrory": "horror"
           "times": [
             {
               "state": "start",
               "date":  "2017-05-05T08:12:00.000Z"
             }
           ]
         }
    {
          "shortMovie":"name"
           "categrory": "comedy"
           "times": [
             {
               "state": "start",
               "date":  "2017-05-05T08:12:00.000Z"
             },
             {
               "state": "stop",
               "date":  "2017-05-05T09:12:00.000Z"
             }
           ],
         }
    {
          "shortMovie":"name"
           "categrory": "comedy"
           "times": [
             {
               "state": "start",
               "date":  "2017-05-05T08:12:00.000Z"
             },
             {
               "state": "pause",
               "date":  "2017-05-05T08:12:00.000Z"
             },
             {
               "state": "resume",
               "date":  "2017-05-05T08:12:00.000Z"
             }
             {
               "state": "stop",
               "date":  "2017-05-05T08:12:00.000Z"
             }
           ],
         }



via Schüler

No comments:

Post a Comment