Is there a way to get resources (example: Posts) via the authenticated user? Like this:
Auth::user()->posts()
Schema:
type Query @guard(with: ["api"]) {
me_posts: [Post!]! @auth
}
Is there a way to get resources (example: Posts) via the authenticated user? Like this:
Auth::user()->posts()
Schema:
type Query @guard(with: ["api"]) {
me_posts: [Post!]! @auth
}