Replies: 1 comment 2 replies
-
@fowork1 I'm guessing you're going to need to write a custom root type mapper to handle the Request object. GraphQLite is simply saying that you must have the I'm really not sure what you're trying to do here though. It looks wrong on many levels. I don't know why you need this Laravel mess or why you're trying to output an array like this. This looks like some REST design. At any rate, take a look at the follow. Maybe it's what you want. IMO though, I think you're doing it all wrong and making a mistake with your approach. |
Beta Was this translation helpful? Give feedback.
-
How i should annotate resource class extends standard JsonResource?
in part of code ProductController it look like:
and ProductResource:
on trying i got error
I read about @factory but i supposing that's not my case.
Also i can't use @input (@UseInputType) annotation for Request class...
Is exist solution for this case?
Beta Was this translation helpful? Give feedback.
All reactions