Deserialize Association Objects
See original GitHub issueHi,
I’ve created an Association Table as described in the SQLAlchemy manual, however when I try to load on a POST request I get this response:
RuntimeError: Model <class 'app.products.models.SoldProducts'> has multiple primary keys
Which is true, as the association table creates a compound key. How should I proceed?
Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Resolve JPA association while deserializing JAX-RS JSON ...
What we are doing is deserializing the JSON payload into dedicated DTO objects. In the sample case this would mean to have a...
Read more >Serialize/Deserialize objects by reference to transfer json ...
I'm trying here to address few of them: Serialize/Deserialize object by reference or preserve association between objects; Serialize/Deserialize ...
Read more >Introducing serializr: serializing and deserializing object ...
Serializing object graphs to JSON and especially deserializing object graphs from JSON is often a cumbersome task in JavaScript.
Read more >Jackson - Bidirectional Relationships - Baeldung
Then we'll see how to serialize entities with bidirectional relationships. Finally, we'll deserialize them. 2. Infinite Recursion.
Read more >Ember Data: A Tutorial and Examples of the Ember.js ... - Toptal
Ember Data employs RESTSerializer for creating objects from API responses (deserialization) and for generating JSON for API requests (serialization).
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 FreeTop 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
Top GitHub Comments
Would it be possible to provide a example for such models?
@tmeloliveira I’m a bit late here, but did https://marshmallow.readthedocs.io/en/stable/nesting.html not help?