Answer the question
In order to leave comments, you need to log in
How to store pages in mongodb?
I'm going to make an admin panel, but have not yet decided how it will work. I want to make one page of the site one collection - is it right to do this? Can you advise how to store website pages in mongodb?
I have only 3 pages: Home, Cart and Products
Answer the question
In order to leave comments, you need to log in
The pages collection, which stores all the data about the pages, the output is like this:
{
id: "dsfgwrgrwgrgertghert345y345wrg",
title: "Главная",
slug: "glavnaya",
content: "Описание страницы"
}
{
id: "dsfgwrgrwgrgertghert345y345wrg",
title: "Товар 1",
slug: "tovar-1",
content: "Описание продукта",
... тут доп параметры продуктов
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question