-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
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
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.
The text was updated successfully, but these errors were encountered: