0

Is there an any way to include DbRef without mapping?

as like,

var chats = Database.db.GetCollection<ChatData>("Chats").Include(x=>x.User);

to

var chats = db.GetCollection("Chats").Include(x=>x["User"]);
Community
  • 1
  • 1

1 Answers1

0

Now it's possible, in current master branch.

Use db.GetCollection("Chats").Include("User")

Include now support strings as path, like: "User", "Customer.Address"

Will be avaiable in NuGet in next release.

mbdavid
  • 1,076
  • 7
  • 8