data fetching

This commit is contained in:
2025-10-21 12:38:50 -04:00
parent 34ba94e2cb
commit bada44fec3
8 changed files with 122 additions and 3 deletions

View File

@@ -24,6 +24,18 @@ export const PROJECT_QUERY = await payload.find({
order: true,
categories: true,
featuredProject: true,
},
},
sort: '-order'
})
})
export const SINGLE_PROJECT_QUERY = async (slug: string) => {
return await payload.find({
collection: 'projects',
where: {
slug: {
equals: slug
}
},
limit: 1
}
)}