Start a new topic

How to use _id of one collection in to another collection


I have 5 collections, Every collection have auto generated `_id `which is in string format. So now my question is to how can i use `_id` of one collection in another collection because` _id` is same in every collection.


Suppose i have challenge and progress collections. so i want to use _id of challenge collection in to progress collection but progress collection already have own `_id`.

1 Comment


you probably want to use a `KinveyReference` object for this. You can define this is as a field within your entities, and it will map to an entity in another collection. Check out our documentation on this, here: and let me know if you have any more questions!

Login or Signup to post a comment