Home / Function/ count2() — express Function Reference

count2() — express Function Reference

Architecture documentation for the count2() function in index.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  5fc512bf_1563_b431_a949_0daf507c217d["count2()"]
  57a1e382_9ac6_8bbd_dbd1_d0e42a488760["index.js"]
  5fc512bf_1563_b431_a949_0daf507c217d -->|defined in| 57a1e382_9ac6_8bbd_dbd1_d0e42a488760
  836e8eb6_5272_40d4_8df4_ba7de204d6cf["count()"]
  5fc512bf_1563_b431_a949_0daf507c217d -->|calls| 836e8eb6_5272_40d4_8df4_ba7de204d6cf
  style 5fc512bf_1563_b431_a949_0daf507c217d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

examples/view-locals/index.js lines 86–92

function count2(req, res, next) {
  User.count(function(err, count){
    if (err) return next(err);
    res.locals.count = count;
    next();
  })
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does count2() do?
count2() is a function in the express codebase, defined in examples/view-locals/index.js.
Where is count2() defined?
count2() is defined in examples/view-locals/index.js at line 86.
What does count2() call?
count2() calls 1 function(s): count.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free