I use lighthouse package for making my graphql schema (https://github.com/nuwave/lighthouse)
But how to get data from @belongsToMany
relationship that is stored in pivot table?
E.g. the Document
entity connected N-N to Person
entity. And each Person has some meta data in the pivot table.
foreign_citizens: [Person!] @belongsToMany(relation: "foreignCitizens"),