-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
just tried to use some MongoDB ObjectId fields in a subscription....
here's an example class:
public class TestObjectID :MongoDocument
{
// Global properties
public ObjectId TestID { get; set; }
public string name { get; set; }
}
i needed this for cross-referencing to other collections.
it gets serialized, but the TestID object itself gets only an empty ObjectId "000000000000000000000000".
I should mention, that the document itself, so the _id Object ( in the same format and written by mongodb driver) gets serialized well at all.
All fine when i change back to strings, but it would be a nice feature for security reasons...
Maybe it should be implemented in future releases. Very useful for developers who are handling MongoDB document r/w directly on the backend....
Metadata
Metadata
Assignees
Labels
No labels