Why, in this POST request can not see the body of the request?

Tell me, make a POST request to add the item of tudeski, pass in body text,and on backend I want to create todesco with this text, but the withdrawal of the request body is empty,why?

const options = {
method: "POST",
body: JSON.stringify(text)

fetch(`http://localhost:4000/`, options)

Беexports.create = async (req,res,next) => {
console.log("REQ BODY",req.body);
const text = req.body;

try {
const newTodo = new Todo({
await newTodo.save()
return res.json(newTodo)
} catch (error) {
const controllers = require('./controllers.js')
March 20th 20 at 11:31
1 answer
March 20th 20 at 11:33
To get the code in the request body as the res.body, you need to include body-parser:
const express = require('express');
const bodyParser = require('body-parser');

const app = express();


Find more questions by tags MongoDBJSONWeb servers