strapi-plugin-content-export-import icon indicating copy to clipboard operation
strapi-plugin-content-export-import copied to clipboard

Does not export relations

Open yanicklandry opened this issue 3 years ago • 3 comments
trafficstars

yanicklandry avatar Feb 02 '22 19:02 yanicklandry

Strapi v4 does not populate relations, components, or dynamic zones by default, you have to enable it explicitly.

The way I enabled it in this plugin is by extending the file content-export-import\server\services\utils\content.js:

...
const findAll = (uid) => {
  return strapi.entityService.findMany(uid, { populate: "*" });
};
...

More info here: https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/entity-service/populate.html

Ravanger avatar Feb 03 '22 21:02 Ravanger

Yeah, it's also mentioned in #23 I did a fix to export the relationships, but currently the relationships cannot be imported yet. I need to figure out how to import them, let me know you have any ideas. Thanks,

lazurey avatar Feb 14 '22 01:02 lazurey

Hello, Any news here ?

Aylay avatar Apr 20 '23 09:04 Aylay