Meteor-Community-Packages / Meteor-Community-Packages/ground-db

It seemed ground:db is not supporting mongo ObjectID?

Open
#179 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
569
Forks
77
PR merge metrics
No merged PRs in 30d

Description

I found an offline storage test project for Meteor, using meteorhacks:subs-manager and ground:db. the project worked fine, but if I insert some data from server side(using "meteor mongo"), the data cannot be persisted when offline. the only difference between data inserted manually from server side and data from client side by pressing buttons is the _id's format: plain string vs ObjectId(string). And errors occurred like: "Meteor does not currently support objects other than ObjectID as ids".
I am a beginner, I don't know if the reason is ground:db not supporting ObjectID version of _id, or subs-manager. I hope somebody can upgrade the related plugins. Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing offline persistence with records inserted through "meteor mongo" using an ObjectID _id, then compare them with client-created records in the offline storage test project. Trace whether ground:db or meteorhacks:subs-manager rejects the ObjectID and confirm that the issue is resolved by identifying the responsible plugin and its supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.