Created
August 14, 2012 14:48
-
-
Save pbougie/3349945 to your computer and use it in GitHub Desktop.
Mongoid mass query + persistence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shift.where( | |
:account_id => Moped::BSON::ObjectId("502a58074f4e4831ba000001"), | |
:location => "My Location", | |
:department => "My Department", | |
:position => "My Position", | |
:date.gte => Date.current | |
).count | |
# => 40 | |
Shift.where( | |
:account_id => Moped::BSON::ObjectId("502a58074f4e4831ba000001"), | |
:location => "My Location", | |
:department => "My Department", | |
:position => "My Position", | |
:date.gte => Date.current | |
).update_all(position: "New Position") | |
# => {"updatedExisting"=>false, "n"=>0, "connectionId"=>164, "err"=>nil, "ok"=>1.0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MOPED: 127.0.0.1:27017 COMMAND database=worksked_development command={:count=>:shifts, :query=>{"status"=>{"$ne"=>:deleted}, "account_id"=>"502a58074f4e4831ba000001", "location"=>"My Location", "department"=>"My Department", "position"=>"My Position", "date"=>{"$gte"=>2012-08-14 00:00:00 UTC}}} (0.7911ms) | |
MOPED: 127.0.0.1:27017 UPDATE database=worksked_development collection=shifts selector={"$query"=>{"status"=>{"$ne"=>:deleted}, "account_id"=>"502a58074f4e4831ba000001", "location"=>"My Location", "department"=>"My Department", "position"=>"My Position", "date"=>{"$gte"=>2012-08-14 00:00:00 UTC}}, "$orderby"=>{"start_at"=>1}} update={"$set"=>{:position=>"New Position"}} flags=[:multi] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class Shift | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
include Mongoid::MultiParameterAttributes | |
belongs_to :account, index: true | |
belongs_to :employee, index: true | |
field :status, type: Symbol, default: :draft | |
field :date, type: Date | |
field :start_at, type: DateTime | |
field :end_at, type: DateTime | |
field :location, type: String | |
field :department, type: String | |
field :position, type: String | |
field :color, type: String | |
field :notes, type: String | |
field :published_by, type: String | |
field :published_at, type: DateTime | |
attr_accessible :employee, :date, :start_at, :end_at, :position, :color, :notes | |
validates :account, presence: true | |
validates :employee, presence: true | |
validates :status, presence: true | |
validates :status, :inclusion => { in: [:draft, :published, :removed, :deleted] } | |
validates :date, presence: true | |
validates :start_at, presence: true | |
validates :end_at, presence: true | |
validates :location, presence: true | |
validates :department, presence: true | |
default_scope where(:status.ne => :deleted).asc(:start_at) | |
scope :draft, where(:status => :draft) | |
scope :published, where(:status => :published) | |
scope :by_employee, ->(employee) { where(employee_id: employee) } | |
scope :by_department, ->(loc, dept) { where(location: loc, department: dept) } | |
scope :between_dates, ->(sd, ed) { where(:date.gte => sd, :date.lte => ed) } | |
index({ status: 1 }) | |
index({ date: 1 }) | |
index({ start_at: 1 }) | |
index({ end_at: 1 }) | |
index({ location: 1 }) | |
index({ department: 1 }) | |
index({ position: 1 }) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "_id" : { "$oid" : "502a623a4f4e48b63c000015" }, "status" : "draft", "date" : { "$date" : 1346889600000 }, "start_at" : { "$date" : 1346922000000 }, "end_at" : { "$date" : 1346954400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Et non laudantium officiis quia quasi reprehenderit consequatur quod quo.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000033" }, "updated_at" : { "$date" : 1344954938849 }, "created_at" : { "$date" : 1344954938849 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c000016" }, "status" : "draft", "date" : { "$date" : 1346889600000 }, "start_at" : { "$date" : 1346922000000 }, "end_at" : { "$date" : 1346950800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Est suscipit unde sed enim rerum autem cumque ad.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000075" }, "updated_at" : { "$date" : 1344954938862 }, "created_at" : { "$date" : 1344954938862 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c000017" }, "status" : "draft", "date" : { "$date" : 1347321600000 }, "start_at" : { "$date" : 1347390000000 }, "end_at" : { "$date" : 1347422400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Eius ut est quaerat aperiam.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00002f" }, "updated_at" : { "$date" : 1344954938874 }, "created_at" : { "$date" : 1344954938874 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c000018" }, "status" : "draft", "date" : { "$date" : 1346630400000 }, "start_at" : { "$date" : 1346684400000 }, "end_at" : { "$date" : 1346727600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Voluptatibus et molestiae officia tempora adipisci beatae.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba00000d" }, "updated_at" : { "$date" : 1344954938886 }, "created_at" : { "$date" : 1344954938886 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c000019" }, "status" : "draft", "date" : { "$date" : 1346544000000 }, "start_at" : { "$date" : 1346576400000 }, "end_at" : { "$date" : 1346619600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Itaque aut quisquam voluptas architecto iste.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba000017" }, "updated_at" : { "$date" : 1344954938899 }, "created_at" : { "$date" : 1344954938899 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001a" }, "status" : "draft", "date" : { "$date" : 1348185600000 }, "start_at" : { "$date" : 1348228800000 }, "end_at" : { "$date" : 1348257600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Expedita et temporibus animi maiores.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba00001b" }, "updated_at" : { "$date" : 1344954938920 }, "created_at" : { "$date" : 1344954938920 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001b" }, "status" : "draft", "date" : { "$date" : 1346630400000 }, "start_at" : { "$date" : 1346662800000 }, "end_at" : { "$date" : 1346695200000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Accusantium qui voluptate est.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000057" }, "updated_at" : { "$date" : 1344954938933 }, "created_at" : { "$date" : 1344954938933 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001c" }, "status" : "draft", "date" : { "$date" : 1348012800000 }, "start_at" : { "$date" : 1348066800000 }, "end_at" : { "$date" : 1348106400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Deserunt blanditiis ea.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000035" }, "updated_at" : { "$date" : 1344954938946 }, "created_at" : { "$date" : 1344954938946 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001d" }, "status" : "draft", "date" : { "$date" : 1346803200000 }, "start_at" : { "$date" : 1346871600000 }, "end_at" : { "$date" : 1346900400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Pariatur harum eum ut tempora non et ducimus sapiente occaecati.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000047" }, "updated_at" : { "$date" : 1344954938959 }, "created_at" : { "$date" : 1344954938959 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001e" }, "status" : "draft", "date" : { "$date" : 1347580800000 }, "start_at" : { "$date" : 1347624000000 }, "end_at" : { "$date" : 1347656400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Doloribus tempore magni corporis.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000055" }, "updated_at" : { "$date" : 1344954938971 }, "created_at" : { "$date" : 1344954938971 } } | |
{ "_id" : { "$oid" : "502a623a4f4e48b63c00001f" }, "status" : "draft", "date" : { "$date" : 1348272000000 }, "start_at" : { "$date" : 1348315200000 }, "end_at" : { "$date" : 1348347600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Eum ea rerum ipsum pariatur magnam voluptatibus ut.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba000011" }, "updated_at" : { "$date" : 1344954938984 }, "created_at" : { "$date" : 1344954938984 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000020" }, "status" : "draft", "date" : { "$date" : 1347235200000 }, "start_at" : { "$date" : 1347303600000 }, "end_at" : { "$date" : 1347346800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Ab quas sequi ducimus.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000077" }, "updated_at" : { "$date" : 1344954939001 }, "created_at" : { "$date" : 1344954939001 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000021" }, "status" : "draft", "date" : { "$date" : 1347062400000 }, "start_at" : { "$date" : 1347094800000 }, "end_at" : { "$date" : 1347138000000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Molestias voluptatum optio voluptas alias neque.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000079" }, "updated_at" : { "$date" : 1344954939018 }, "created_at" : { "$date" : 1344954939018 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000022" }, "status" : "draft", "date" : { "$date" : 1348358400000 }, "start_at" : { "$date" : 1348390800000 }, "end_at" : { "$date" : 1348430400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Qui recusandae porro placeat consequatur officia error tenetur illo minus.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000029" }, "updated_at" : { "$date" : 1344954939033 }, "created_at" : { "$date" : 1344954939033 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000023" }, "status" : "draft", "date" : { "$date" : 1346457600000 }, "start_at" : { "$date" : 1346500800000 }, "end_at" : { "$date" : 1346533200000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Qui omnis id.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000027" }, "updated_at" : { "$date" : 1344954939046 }, "created_at" : { "$date" : 1344954939046 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000024" }, "status" : "draft", "date" : { "$date" : 1347235200000 }, "start_at" : { "$date" : 1347289200000 }, "end_at" : { "$date" : 1347332400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Ad quae voluptatibus beatae.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00006d" }, "updated_at" : { "$date" : 1344954939059 }, "created_at" : { "$date" : 1344954939059 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000025" }, "status" : "draft", "date" : { "$date" : 1346371200000 }, "start_at" : { "$date" : 1346439600000 }, "end_at" : { "$date" : 1346468400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Sed vel debitis accusantium unde eius ut.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00006b" }, "updated_at" : { "$date" : 1344954939072 }, "created_at" : { "$date" : 1344954939072 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000026" }, "status" : "draft", "date" : { "$date" : 1348099200000 }, "start_at" : { "$date" : 1348142400000 }, "end_at" : { "$date" : 1348178400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Ducimus enim sequi blanditiis eum.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00001f" }, "updated_at" : { "$date" : 1344954939083 }, "created_at" : { "$date" : 1344954939083 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000027" }, "status" : "draft", "date" : { "$date" : 1346284800000 }, "start_at" : { "$date" : 1346353200000 }, "end_at" : { "$date" : 1346382000000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Explicabo nesciunt aut atque.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000063" }, "updated_at" : { "$date" : 1344954939095 }, "created_at" : { "$date" : 1344954939095 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000028" }, "status" : "draft", "date" : { "$date" : 1346371200000 }, "start_at" : { "$date" : 1346414400000 }, "end_at" : { "$date" : 1346450400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Nulla quidem nesciunt iure dolore natus excepturi distinctio esse aut.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba000013" }, "updated_at" : { "$date" : 1344954939108 }, "created_at" : { "$date" : 1344954939108 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000029" }, "status" : "draft", "date" : { "$date" : 1347926400000 }, "start_at" : { "$date" : 1347994800000 }, "end_at" : { "$date" : 1348027200000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Et consequatur blanditiis dolore.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000061" }, "updated_at" : { "$date" : 1344954939121 }, "created_at" : { "$date" : 1344954939121 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002a" }, "status" : "draft", "date" : { "$date" : 1346371200000 }, "start_at" : { "$date" : 1346403600000 }, "end_at" : { "$date" : 1346439600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "In occaecati sint aut eligendi magnam non dolores.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00005d" }, "updated_at" : { "$date" : 1344954939133 }, "created_at" : { "$date" : 1344954939133 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002b" }, "status" : "draft", "date" : { "$date" : 1348012800000 }, "start_at" : { "$date" : 1348081200000 }, "end_at" : { "$date" : 1348113600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Odio quis reprehenderit enim.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00005f" }, "updated_at" : { "$date" : 1344954939206 }, "created_at" : { "$date" : 1344954939206 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002c" }, "status" : "draft", "date" : { "$date" : 1347408000000 }, "start_at" : { "$date" : 1347440400000 }, "end_at" : { "$date" : 1347483600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Vel neque reprehenderit voluptatem reiciendis iusto dolorum.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00003b" }, "updated_at" : { "$date" : 1344954939220 }, "created_at" : { "$date" : 1344954939220 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002d" }, "status" : "draft", "date" : { "$date" : 1346544000000 }, "start_at" : { "$date" : 1346598000000 }, "end_at" : { "$date" : 1346626800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Enim modi ut.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba00000b" }, "updated_at" : { "$date" : 1344954939233 }, "created_at" : { "$date" : 1344954939233 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002e" }, "status" : "draft", "date" : { "$date" : 1347148800000 }, "start_at" : { "$date" : 1347217200000 }, "end_at" : { "$date" : 1347256800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Numquam et sunt.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba00001d" }, "updated_at" : { "$date" : 1344954939247 }, "created_at" : { "$date" : 1344954939247 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00002f" }, "status" : "draft", "date" : { "$date" : 1348012800000 }, "start_at" : { "$date" : 1348056000000 }, "end_at" : { "$date" : 1348099200000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Totam libero facere nam repellat mollitia quos adipisci.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000069" }, "updated_at" : { "$date" : 1344954939260 }, "created_at" : { "$date" : 1344954939260 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000030" }, "status" : "draft", "date" : { "$date" : 1346284800000 }, "start_at" : { "$date" : 1346353200000 }, "end_at" : { "$date" : 1346396400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Ex est dolor.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000071" }, "updated_at" : { "$date" : 1344954939272 }, "created_at" : { "$date" : 1344954939272 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000031" }, "status" : "draft", "date" : { "$date" : 1347753600000 }, "start_at" : { "$date" : 1347807600000 }, "end_at" : { "$date" : 1347836400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Accusamus quis quos fuga sunt.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000041" }, "updated_at" : { "$date" : 1344954939285 }, "created_at" : { "$date" : 1344954939285 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000032" }, "status" : "draft", "date" : { "$date" : 1347494400000 }, "start_at" : { "$date" : 1347562800000 }, "end_at" : { "$date" : 1347598800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Nemo et deserunt explicabo distinctio quia voluptates corporis minus laudantium.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00006f" }, "updated_at" : { "$date" : 1344954939297 }, "created_at" : { "$date" : 1344954939297 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000033" }, "status" : "draft", "date" : { "$date" : 1346803200000 }, "start_at" : { "$date" : 1346846400000 }, "end_at" : { "$date" : 1346882400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Et sapiente cum suscipit tenetur ad.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000031" }, "updated_at" : { "$date" : 1344954939309 }, "created_at" : { "$date" : 1344954939309 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000034" }, "status" : "draft", "date" : { "$date" : 1348099200000 }, "start_at" : { "$date" : 1348142400000 }, "end_at" : { "$date" : 1348185600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Quas accusamus blanditiis.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba00000f" }, "updated_at" : { "$date" : 1344954939322 }, "created_at" : { "$date" : 1344954939322 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000035" }, "status" : "draft", "date" : { "$date" : 1346198400000 }, "start_at" : { "$date" : 1346241600000 }, "end_at" : { "$date" : 1346284800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Ea aut libero eveniet reiciendis voluptas enim et.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000037" }, "updated_at" : { "$date" : 1344954939335 }, "created_at" : { "$date" : 1344954939335 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000036" }, "status" : "draft", "date" : { "$date" : 1346630400000 }, "start_at" : { "$date" : 1346662800000 }, "end_at" : { "$date" : 1346706000000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Quo dicta ut necessitatibus sapiente deserunt.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a58094f4e4831ba000015" }, "updated_at" : { "$date" : 1344954939347 }, "created_at" : { "$date" : 1344954939347 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000037" }, "status" : "draft", "date" : { "$date" : 1346976000000 }, "start_at" : { "$date" : 1347030000000 }, "end_at" : { "$date" : 1347069600000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Dolorem quas quo eos nihil non repudiandae quasi vel.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00004f" }, "updated_at" : { "$date" : 1344954939360 }, "created_at" : { "$date" : 1344954939360 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000038" }, "status" : "draft", "date" : { "$date" : 1347926400000 }, "start_at" : { "$date" : 1347980400000 }, "end_at" : { "$date" : 1348020000000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Sit eius vitae incidunt.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000065" }, "updated_at" : { "$date" : 1344954939372 }, "created_at" : { "$date" : 1344954939372 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c000039" }, "status" : "draft", "date" : { "$date" : 1348444800000 }, "start_at" : { "$date" : 1348498800000 }, "end_at" : { "$date" : 1348534800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Qui quia commodi autem deserunt.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba000039" }, "updated_at" : { "$date" : 1344954939384 }, "created_at" : { "$date" : 1344954939384 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00003a" }, "status" : "draft", "date" : { "$date" : 1347062400000 }, "start_at" : { "$date" : 1347105600000 }, "end_at" : { "$date" : 1347148800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Autem sit qui quas quo blanditiis non.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00005b" }, "updated_at" : { "$date" : 1344954939397 }, "created_at" : { "$date" : 1344954939397 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00003b" }, "status" : "draft", "date" : { "$date" : 1346198400000 }, "start_at" : { "$date" : 1346230800000 }, "end_at" : { "$date" : 1346270400000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Omnis officiis voluptatibus earum qui repudiandae veritatis.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00003f" }, "updated_at" : { "$date" : 1344954939410 }, "created_at" : { "$date" : 1344954939410 } } | |
{ "_id" : { "$oid" : "502a623b4f4e48b63c00003c" }, "status" : "draft", "date" : { "$date" : 1346544000000 }, "start_at" : { "$date" : 1346587200000 }, "end_at" : { "$date" : 1346626800000 }, "location" : "My Location", "department" : "My Department", "position" : "My Position", "color" : "#aabbcc", "notes" : "Sed ipsa reprehenderit qui.", "account_id" : { "$oid" : "502a58074f4e4831ba000001" }, "employee_id" : { "$oid" : "502a580a4f4e4831ba00003d" }, "updated_at" : { "$date" : 1344954939423 }, "created_at" : { "$date" : 1344954939423 } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment