I am encountering difficulties when attempting to retrieve the relation field from the API.
export async function fetchContent(params) {
const reqOptions = {
headers: {
Authorization: `Bearer ${process.env.API_TOKEN}`
}
};
const request = await fetch(`${base}/api/guides?populate=*${params}`, reqOptions);
const response = await request.json();
return response;
}
const blogs = await fetchContent(`&filters[Slug][$eq]=${params.slug}`);
I have also made attempts to configure the permission settings for both Authenticated and Public to allow "find" & "findOne".
Any insights on this matter would be greatly appreciated. Thank you!