Skip to content
#

express-middleware

Here are 595 public repositories matching this topic...

any35
any35 commented Mar 20, 2020

I was in trouble when managing my document with mongo express.

It cannot show the detail of a document which have number type id.

repro steps:

  1. insert a doc with a number type id
{
    "_id": 123456,
    "message": "another field"
}
  1. find the document we just insert above and click it
  2. an error is shown on the screen: Document not found!

can anybody help?

express-gateway
XVincentX
XVincentX commented Jan 2, 2018

If not for some particular exceptions, the status code returned from our WebAPI on error is always 500, regardless of the kind of error.

If an object already exists, for example, it should be returned as 409. If the object does not pass the schema validation, it should be a 415.

Go through the whole WebAPI and verify that the status codes are being returned correctly.

Hint: Error cl

mo
mo commented Sep 17, 2017

When a user does a password reset / changes his password, it makes sense to drop all sessions for that user. Currently the user id is stored inside a json blob on the session, so it becomes very inefficient to query for all sessions that belong to a specific user.

In issue #53 ( chill117/express-mysql-session#53 ), it was suggested that one way to workaround this issue

Improve this page

Add a description, image, and links to the express-middleware topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the express-middleware topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.