Closed carere closed 6 years ago
Hi, @carere
Can you check is Apollo query equal to explorer one? (use network tab in dev tools
Hello, actually it comes from me...
Sorry for the issue, the problem was in the JS side, the stack error isn't as good as symfony's one :)
Thx again for the bundle !!!
Also my recommendation is not to use *ContainerAwareField, the better solution is to use container from ResolveInfo: $info->getContainer()
.
Thx for the advice,
I dumped the $info
in order to see what it contains, and i saw that the $container
property was set to null
.
How can i inject the container in the $info
variable ?
UPDATE
I saw that the $container
is lazy-loaded :)
I will use this way in the future :)
Hello, first of all, thx for the bundle.
My problem is when i try to send a mutation which delete an object i got this error:
Object of class Youshido\GraphQL\Parser\Ast\ArgumentValue\InputObject could not be converted to string
I don't understand why the inputObject would be converted to string, this is my mutation:
mutation { deleteContent(api_key: "xxx",id: 3) }
Here is my code in PHP for that mutation:
For info, the item is deleted from DB, but when i use Apollo in order to launch my query (in my JS app) i got this error. If i launch the same query in the graphql explorer: no issue encountered.
Did i do anything wrong ? Hope someone can explain me what happen on this use case :)