if I console log console.log(collections[2]) i get :
{
[0] id: 'YPqvghAAACAA4qLV',
[0] uid: 'onde-collection',
[0] url: null,
[0] type: 'collection',
[0] href: 'https://heroesdebarrio.cdn.prismic.io/api/v2/documents/search?ref=YP8aZRAAACIAbArV&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22YPqvghAAACAA4qLV%22%29+%5D%5D',
[0] tags: [],
[0] first_publication_date: '2021-07-23T12:15:46+0000',
[0] last_publication_date: '2021-07-26T20:26:13+0000',
[0] slugs: [ 'vita', 'vita-collection' ],
[0] linked_documents: [],
[0] lang: 'es-es',
[0] alternate_languages: [],
[0] data: {
[0] description: 'The fluid movement of the elements of this collection joins the soft shapes of the filigree, that look like floating in the structures. The repetition of the waves creates big but incredibly light earrings, comfortable to wear because almost imperceptible.',
[0] title: [ [Object] ],
[0] product: [ [Object], [Object], [Object] ]
[0] }
[0] }
then is try to access the product with console.log(collections[2].data.product), this is the result:
0] [
[0] {
[0] products_product: {
[0] id: 'YPqruBAAACAA4pGX',
[0] type: 'product',
[0] tags: [],
[0] slug: 'silver-necklace',
[0] lang: 'es-es',
[0] first_publication_date: '2021-07-23T11:45:03+0000',
[0] last_publication_date: '2021-07-24T08:50:01+0000',
[0] uid: 'silver-necklace',
[0] data: [Object],
[0] link_type: 'Document',
[0] isBroken: false
[0] }
[0] },
[0] {
[0] products_product: {
[0] id: 'YPvSQxAAACAA5zJs',
[0] type: 'product',
[0] tags: [],
[0] slug: 'gold-necklace',
[0] lang: 'es-es',
[0] first_publication_date: '2021-07-24T08:41:42+0000',
[0] last_publication_date: '2021-07-24T08:41:42+0000',
[0] uid: 'gold-necklace',
[0] data: [Object],
[0] link_type: 'Document',
[0] isBroken: false
[0] }
[0] },
[0] {
[0] products_product: {
[0] id: 'YPqruBAAACAA4pGX',
[0] type: 'product',
[0] tags: [],
[0] slug: 'silver-necklace',
[0] lang: 'es-es',
[0] first_publication_date: '2021-07-23T11:45:03+0000',
[0] last_publication_date: '2021-07-24T08:50:01+0000',
[0] uid: 'silver-necklace',
[0] data: [Object],
[0] link_type: 'Document',
[0] isBroken: false
[0] }
[0] }
[0] ]
but i cant find the image url that i was looking with
src=product.products_product.data.image.url