lazurey / strapi-plugin-content-export-import

Strapi plugin for content export and import
166 stars 47 forks source link

Does not export relations #31

Open yanicklandry opened 2 years ago

Ravanger commented 2 years ago

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

lazurey commented 2 years ago

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,

Aylay commented 1 year ago

Hello, Any news here ?