Reference for How to Write an Open Source JavaScript Library
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
The purpose of this document is to serve as a reference for:
How to Write an Open Source JavaScript Library course by Kent C. Dodds
Watch the series at egghead.io, if you haven't.
const updateChildPaths = async (parent: any) => { | |
const children = await strapi.entityService.findMany(context, { | |
filters: { parent: parent.id }, | |
}); | |
for (const child of children) { | |
let newPath = `${parent.path}/${child.slug}`; | |
if (parent.slug === homeSlug) { | |
newPath = `/${child.slug}`; |