I'm using Payload's multi-tenant plugin, but the tenant isn't being selected in the following query:
const doc = await payload.findByID({
collection: 'pages',
id: "6799c4596610d1f18550b1d7",
draft: true,
depth: 2,
select: {
id: true,
slug: true,
title: true,
},
populate: {
tenants: {
slug: true,
},
},
});
- Return values include only
id,slugandtitlefields. - I have even try adding
tenant: trueindefaultPopulate
Any pointers will be highly appreciated. Thanks in advance!