Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:13:59+00:00 2026-05-25T14:13:59+00:00

I am new to mongo and I want to use it in web application

  • 0

I am new to mongo and I want to use it in web application which has webform to edit relatively complex nested objects.

Long story short – I have editor written in JQuery/Knockout which generates proper json to save. If you saw video about knockout you can imaging how complex it could be.
My only problem that when I try to generate ID for object ob javascript side (for ObjectId property) it is ignored on deserialization (I am having “000000…00”)

I read about ObjectId specification http://www.mongodb.org/display/DOCS/Object+IDs and passing correct new id and trying to change last 3 bytes but it doesn’t work. Any ideas?

Currently I have something like:

function newMongoId() {
    var id = settings.BaseId // fixed part (first 18 bytes) from server
     + settings.LastId++; // increment which starts from 100000
    return { "$oid": id };
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:13:59+00:00Added an answer on May 25, 2026 at 2:13 pm

    Well, that was issue with JavasriptSerializar which renamed all ‘Id’ property to ‘_id’.

    After I assigned result of function above to _id all started to work fine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote these lines in My Application start event: var mongo = new Mongo();
Currently I am starting av new project and considering which database technology I want
Hello I am new to mono android I want to use shared preferences for
In my Application I want to use the AudioTrack class to play back some
I have a mongo class, which I later want to add CRUD functions into
Inside my class I have a private variable that my methods use which has
I'm using the Mongo shell to query my Mongo db. I want to use
I want to update my app to use the new SQL DB that was
I am new to the mongo db.I just installed it over my ubuntu 11.04
I have a database connection that I got like this: db = Mongo::Connection.new.db(app-development) but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.