Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create polymorphic relationship #298

Open
grahambates opened this issue Jan 15, 2019 · 0 comments
Open

Unable to create polymorphic relationship #298

grahambates opened this issue Jan 15, 2019 · 0 comments

Comments

@grahambates
Copy link

Support for serializing existing resources with polymorphic relationships was added in #89 but it currently doesn't seem to be possible to create the relationship via JSON API.

The discriminator column does not get set which then results in an error when the new resource is returned and fails to serialize. The discriminator column should be set to the model name which matches the 'type' property of the relationship object in the payload.

grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jan 15, 2019
grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jan 16, 2019
grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jan 16, 2019
grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jan 16, 2019
grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jan 16, 2019
grahambates added a commit to grahambates/loopback-component-jsonapi that referenced this issue Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant