Answer the question
In order to leave comments, you need to log in
How to access a package method through Lighthouse GraphQL?
Hello!
I installed the package https://github.com/rtconner/laravel-likeable
In the controller, to get the number of likes, I use the built-in $comment->likeCount method;
Can you please tell me how to pass this value to my graphql "Comment" type without using custom queries? Is it possible?
type Comment {
id: ID!
comment: String!
created_at: String!
updated_at: String!
likeCount: Int # как то так)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question