Entry::query() and related content.

Hi, I'm trying to run a query like this:

$projects = Entry::query()
->where('collection', 'projects')
->where('author', auth()->user()->id())
->get();

But, my data is this:

---
title: test
author:
  - c984f9f6-7002-4251-8d3e-33ace8f1e350
updated_by: c984f9f6-7002-4251-8d3e-33ace8f1e350
updated_at: 1598766407
id: 79e81b23-56d5-4b21-9c92-7ac849b22acc
---

How can I use Entry::query() on an array?

Thank in advance :)

>>>>>>> Unanswered <<<<<<<
3 Replies
3 Followers