Posts by Dhenyson Jhean • 77 points
12 posts
-
-1
votes1
answer40
viewsQ: Why does Mongodb (nodejs + Mongoose) not update object property of a document?
I have a document (Mongodb data) from user who has a field tags that stores the tags already used by the user. It is an object array in the format {text: 'tag1', count: 0}. The problem is when…
-
0
votes0
answers13
viewsQ: Mongodb (Mongoose) does not update properties of an object array type document
I have a 'document' of users that has a tag field of type Array that receives objects, these objects are posting tags that store all tags used by it and the amount of repetitions. The problem is…
-
0
votes1
answer29
viewsQ: Image of some items is not updated when modifying the list order
I’m having trouble keeping my images in the right position. I have a list of images, but when I click on the filter to reverse the order, some images keep their position. For better understanding I…
-
1
votes1
answer40
viewsQ: How to set a plugin settings next to Next.js settings?
I have a project that uses a dependency called @uiw/react-md-editor and, for it to work with Next.js, I need to create the file next.config.js and put this code: // next.config.js const…
-
0
votes0
answers21
viewsQ: Mongoose Populate - Return specific data
I am using populate to return data from the user who created a post. It works well, the problem is that populate returns the entire user, including password hash and other information, but I only…
-
0
votes0
answers26
viewsQ: Mongodb referencing data from another Collection
Hello, I have a Collection "posts" that when creating a new document, along with the post data goes the ID of the user who created it, as well as the name of the user and image url. But I realized…
-
0
votes1
answer49
viewsQ: Check Image URL before updating State in React/Next
The logic below is: React/Nextjs with Styled-Components. Hello, I have a component that "renders" the banner of a blog (background-image), the url comes from a state that already has a standard…
-
0
votes0
answers49
viewsQ: Modify SVG with Styled-Components (React/next)
The problem is specific and found nowhere. Summary: How I could modify the properties of my standard JSX SVG icon directly in Styled-Components as well as other icons? Details: I know with…
-
0
votes1
answer88
viewsA: Nextjs does not run in Visual Studio Code, but works in command prompt
To be able to solve, a very simple and basic mistake. When I opened the app with Visual Studio Code, for some reason it changed the "F" of the /Frontend path to a tiny "f". Well, in all projects…
-
-2
votes1
answer88
viewsQ: Nextjs does not run in Visual Studio Code, but works in command prompt
Hello, I created a standard Nextjs application using "npx create-next-app teste", I have not changed any standard file and Windows command prompt (CMD), when I use commands like "npm start", "npm…
-
3
votes2
answers450
viewsQ: What is Aggregate in Mongodb?
I know this kind of doubt I find "easily" in the documentation itself and on the internet, however even in the official documentation became very confused and very technical with several unknown…
-
1
votes1
answer663
viewsA: How the Express Router function works
express. Router() is a Nodejs route manager/handler. It serves to create routes in a modularized way, thus making it possible to create a separate file of route manipulation. For example, create a…