Merge two model eloquent and using Uinion #2555
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your response...I solved the first and second cases that you recommended. I made a class named Feed and a schema named feed.graphql . my code in Feed final class :
and this my code in feed.graphql
it works properly as i want but do you think this is right approach? or there are other best practice? my next question is it possible to paginate the result? i used @paginate directive and error : "debugMessage": "Could not determine a model name for the '@paginate' directive on 'slider.", thanks in advanced |
Beta Was this translation helpful? Give feedback.
-
Thanks lot my friend, it works... |
Beta Was this translation helpful? Give feedback.
-
hello
on my app i have two Model eloquent , Podcast and Episode...i want to make query that based on my logic, merge these models and return the data...(mix of podcast and episode)...
my question is how should be my type Query ??
type Query {
posts : [?] ?
}
Beta Was this translation helpful? Give feedback.
All reactions