Hi. I am getting this error "Object serialized to String. RavenJObject instance expected." when i try to update using the patch api. Even tho i follow the exact code mentioned on the raven website.
Here is my code:
session.Advanced.DatabaseCommands.Patch(
"workers/65",
new[]
{
new Raven.Abstractions.Data.PatchRequest
{
Type =Raven.Abstractions.Data.PatchCommandType.Set,
Name = "Nationality",
Value = Raven.Json.Linq.RavenJObject.FromObject("Sweden")
}
});
Here is the code on ravendb website i followed http://ravendb.net/docs/client-api/partial-document-updates:
documentStore.DatabaseCommands.Patch(
"blogposts/1234",
new[]
{
new PatchRequest
{
Type = PatchCommandType.Set,
Name = "Title",
Value = RavenJObject.FromObject("New title")
}
});
What could be the problem?
I have that problem with latest build. #992