Contentful logo

Contentful Community

To many entries on page

i have only 5 products but i am getting more then 10 on my page.

here is the code

  • const client = contentful.createClient({

  • space: “123”,

  • accessToken: “123”

  • });

  • client.getEntries({

  • 'content_type': 'ecom'
    
  • })

  • .then(function (entries) {

  •           entries.items.forEach(function (entry) {
    
  •             console.log(entry)              
    
  •           let title=entry.fields.title;
    
  •           let des= entry.fields.price;
    
  •           let image = entry.fields.images;      
    
  • jQuery(’.card’).append(’

    ’+title+’

    ’+des+‘

    Cart
    ’);

  •   })
    
  • })