I am using a typed DocumentQuery to read documents from a collection of an Azure DocumentDb.
from f in client.CreateDocumentQuery<MyModel>(Collection.SelfLink) select f
Because I do not find a way how I can set the neccesarry custom json converter, it throws this exeption:
Could not create an instance of type AbstractObject. Type is an interface or abstract class and cannot be instantiated.
Usually you do something like this to make it work:
var settings = new JsonSerializerSettings();
settings.Converters.Add(new MyAbstractConverter());
client.SerializerSettings = settings;
DocumentClient doesn't have any SerializerSettings. So the question is, how can I tell the DocumentDB client that it must use a custom converter when deserializing the json data to my model?