Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

second level relationships data not found in strapi

module.exports = {
  find: ctx => {
    return strapi.query('person').find(ctx.query, [
      {
        path: 'address',
        populate: {
          path: 'contacts',
        },
      },
    ]);
  },
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #level #relationships #data #strapi
ADD COMMENT
Topic
Name
5+6 =