-1

Using this package - https://github.com/rtconner/laravel-likeable im trying to set number of likes to the comment type. Can u plese tell me, its real to use this method inside scheme without custom query? screenshot

type Comment {
    id: ID!
    comment: String!
    created_at: String!
    updated_at: String!
    likeCount: Int ########## something like this
}

I think its a really silly question but i cant find the answer)

Thank you!

1 Answers1

0

It seems that packages has an Accessor, so it may work as you already have your code. But if you want to use a method, just use @method directive.

Enzo Notario
  • 639
  • 4
  • 9