Unable to get data from mongodb

System Information
  • Strapi Version : v3.5.4
  • Operating System: Windows 10
  • Database: MongoDB
  • Node Version: v14.15.5
  • NPM Version: v7.5.4
  • Yarn Version:

Hi guys, I am having problem getting data from database, for example: http://localhost:1337/authors,
I have added successfully data using content-type as you can see from images, also i have enabled in roles, public, find option

Thanks for your help

I see your items are listed as drafts. It means they’re not published (exposed to outside), hence you’re getting an empty array. Try going into each of them and hitting publish in the top right corner.
If you don’t want this type of behaviour you can disable it in model definition in code (did not find it in cms myself, it probably exists somewhere though)
Screenshot 2021-04-11 at 09.08.24

Great, thanks. Tutorial that i was watching it was not shown that i have to publish every item.
Thanks again