Duplication of included models
See original GitHub issueDuplication of data under “included” key in response when using ?include=model
included: [
{
type: "companies",
id: "1",
attributes: {
address: "1 Main St, USA",
contact: "Rick James",
name: "First Company",
phone: "(03) 555 5555"
}
},
{
type: "companies",
id: "1",
attributes: {
address: "1 Main St, USA",
contact: "Rick James",
name: "First Company",
phone: "(03) 555 5555"
}
},
{
type: "companies",
id: "2",
attributes: {
address: "2 Union Rd, USA",
contact: "Leroy Jenkins",
name: "Second Company",
phone: "(03) 555 1234"
}
},
{
type: "companies",
id: "2",
attributes: {
address: "2 Union Rd, USA",
contact: "Leroy Jenkins",
name: "Second Company",
phone: "(03) 555 1234"
}
},
{
type: "companies",
id: "1",
attributes: {
address: "1 Main St, USA",
contact: "Rick James",
name: "First Company",
phone: "(03) 555 5555"
}
},
{
type: "companies",
id: "2",
attributes: {
address: "2 Union Rd, USA",
contact: "Leroy Jenkins",
name: "Second Company",
phone: "(03) 555 1234"
}
}
]
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
What does include[].duplicating: true does in sequelize?
I am setting it on one of the includes I have on my model and see no difference in the results, but since...
Read more >Duplicating models with complex nested associations
I was recently working on an app that required duplicating an Active Record model and its associations. But the complex structure of these ......
Read more >Model calls to another model causing duplication
Model calls to another model causing duplication.We have fixed data model across our customer which is model_analytics.model.lkml and have ...
Read more >Duplicating Models - YouTube
This video show how to duplicate models using alginate impression material.
Read more >Duplication Models for Biological Networks
Duplication Models for Biological Networks. FAN CHUNG,1 LINYUAN LU,1 T. GREGORY DEWEY,2 and DAVID J. GALAS2. ABSTRACT. Are biological networks different ...
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
Solution in the works for this. We have been working on this project which will eventually replace the serialization step in loopback-component-jsonapi include duplication is fixed in loopback-jsonapi-model-serializer https://github.com/digitalsadhu/loopback-jsonapi-model-serializer
yup, closing