Guest User

Untitled

a guest
Jan 22nd, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. Parameters:
  2.  
  3. {"utf8"=>"✓",
  4. "authenticity_token"=>"Y6DMNXV0oq3oejtw4gImTAgTdHGaaAmpMOUKdIfYS/g=",
  5. "user"=>
  6. {"researches_attributes"=>
  7. {"0"=>
  8. {"title"=>"Research is good",
  9. "_destroy"=>"false",
  10. "details"=>"this talks needlessly about the research i have not done",
  11. "id"=>"4e646f10932ecf39c6000019"},
  12. "1"=>
  13. {"title"=>"No Good",
  14. "_destroy"=>"1",
  15. "details"=>"Just testing",
  16. "id"=>"4e646f67932ecf39c600001f"},
  17. "1315206464381"=>
  18. {"title"=>"asdf", "_destroy"=>"false", "details"=>"asdfasdf"}}},
  19. "commit"=>"Save Changes",
  20. "section"=>"professional"}
  21.  
  22.  
  23. Mongid Log(update command)
  24.  
  25. MONGODB alma_connect['users'].update({"_id"=>BSON::ObjectId('4db02a09932ecf57aa000012')}, {"$pullAll"=>{"researches"=>[{"title"=>"No Good", "details"=>"Just testing", "_id"=>BSON::ObjectId('4e646f67932ecf39c600001f')}]}, "$set"=>{"profile_completeness"=>56.81818181818182}, "$pushAll"=>{"researches"=>[{"title"=>"asdf", "details"=>"asdfasdf", "_id"=>BSON::ObjectId('4e647552932ecf39c60000e2')}]}})
  26.  
  27.  
  28.  
  29. Mongodb log(verbose mode, log exception)
  30.  
  31. Mon Sep 5 12:38:02 [conn2] User Assertion: 10150:Field name duplication not allowed with modifiers
  32. Mon Sep 5 12:38:02 [conn2] update alma_connect.users query: { _id: ObjectId('4db02a09932ecf57aa000012') } exception 10150 Field name duplication not allowed with modifiers 0ms
Add Comment
Please, Sign In to add comment