-
-
Notifications
You must be signed in to change notification settings - Fork 900
[GraphQL Mutation] will treat @ORM\Embedded
as String
type
#1750
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
Comments
Or |
@ORM\Embedded
as String
type@ORM\Embedded
as String
type
ping @alanpoulain |
Yes, API Platform doesn't support nested mutations (yet?). You need to give an IRI for a subresource. I will document it later. See also this PR: #1702 But for an embedded entity I'm not sure about which behaviour we want. |
Do you mean whether to treat it as flat or object? In the meantime, what is the temporary solution to deal with embedded type? |
Yes. I think it would be better to treat it like a json_array (iterable type, see this PR #1661). In the meantime have you tried to give it as a JSON encoded string? |
Yes, indeed.
Tested, it still throwing errors :( |
What are the errors? |
I think you are done for, sorry :( You have to wait for a fix. |
Embedded resource does not work for queries as well for graphql |
No description provided.
The text was updated successfully, but these errors were encountered: