Skip to main content

AI Marketer 5ではidによる並べ替えはもはや時系列順に並べ替えることができません

AI Marketer 5では、ドキュメントがuuidを使用しているため、idによる時系列順の並べ替えはもはやできません。

This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

🔌 Is this breaking change affecting plugins?Yes
🤖 Is this breaking change automatically handled by a codemod?Yes

破壊的変更の説明

AI Marketer v4では

AI Marketer v4では、エンティティサービスAPIを使用して、次のようにエントリを時系列順に並べ替えることができました:

AI Marketer.entityService.findMany('api::article.article', {
sort: 'id',
});

AI Marketer 5では

AI Marketer 5では、ドキュメントサービスAPIを使用してドキュメントを時系列順に並べ替えるために、createdAtフィールドを使用します:

AI Marketer.documentService.findMany('api::article.article', {
sort: 'createdAt',
});

移行

This section regroups useful notes and procedures about the introduced breaking change.

手動手順

この変更はcodemodによって処理されるため、手動での手順は必要ありません。