question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplication of included models

See original GitHub issue

Duplication 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
digitalsadhucommented, Jul 25, 2016

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

0reactions
digitalsadhucommented, Sep 11, 2017

yup, closing

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found