Custom serializer and multiple models
See original GitHub issueHi!
I use couch db database with multiple models from F#, I was wondering:
- How to add work with a different serializer (because F# serialized bit weird)?
- How to work with different documents in the same db?
I assume I can use diff “databases” that are the same but with different TSource.:
var rebels = client.GetDatabase<Rebel>("StarWars");
var clones = client.GetDatabase<Clone>("StarWars");
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How to serialize multiple model object?
You use a subserializer, so: class Task_extendedSerializer(serializers.ModelSerializer): class Meta: model = Task_extended fields ...
Read more >DjangoRestMultipleModels — DjangoRestMultipleModels 2.1 ...
Django Rest Framework provides some incredible tools for serializing data, but sometimes you need to combine many serializers and/or models into a single...
Read more >Django : Serialize multiple models and send all in one json ...
Django : Serialize multiple models and send all in one json response django rest framework [ Beautify Your Computer ...
Read more >Django REST Framework API Serializer Multiple Models Json ...
djangorestframework #multiplemodelsoneview Django REST Framework API Serializer Multiple Models Json Response Display multiple models in a ...
Read more >Serializing multiple models
You can specify serializers to user for model relationships. class UserProfileSerializer(serializers.ModelSerializer):. class Meta: model = UserProfile. fields ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

V3.0.0 released
@panoukos41 doing a non-generic version of
GetDatabaseis not possible, you need types to call LINQ methods, also because on the method called, the type changes, for example, when you callSelectorAverage.What I did instead is:
Where(d => d.Discriminator == Value)to the LINQ callCouchDocumentstarget the same databaseThis way everything is automatic and safe.
Everything is in the dev branch if you want to test and give me your feedback couchdb-net/tree/dev#database-splitting