Skip to content

A sample API to show Neo4j usage with TypeScript, in a TDD fashion backed by Jest and Testcontainers, and with large transactions split into multiple Cypher queries.

jpbarbosa/neo4j-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neo4j API

A sample API to show Neo4j usage with TypeScript, in a TDD fashion backed by Jest and Testcontainers, and with large transactions split into multiple Cypher queries (with transaction consistency).

Step-by-Step Tutorial (build your own app)

https://github.com/jpbarbosa/neo4j-api/wiki

Test Result

Determining test suites to run...
Neo4j container found at localhost:55001
 PASS  src/graphApi/movies.test.ts
  moviesApi
    ✓ should create 2 movies (33 ms)
    ✓ should get the 2 movies previously created (12 ms)
    ✓ should get only The Godfather (7 ms)
    ✓ should update The Godfather tagline (27 ms)
    ✓ should add one actor and one reviewer to The Godfather (29 ms)
    ✓ should remove one actor and one reviewer from The Godfather (28 ms)
    ✓ should not create any data when an error occurs in the transaction (13 ms)
    ✓ should delete The Godfather (14 ms)

Test Suites: 1 passed, 1 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        0.933 s, estimated 1 s
Ran all test suites related to changed files.

Watch Usage: Press w to show more.

Screenshot

TDD

Requirements

References

About

A sample API to show Neo4j usage with TypeScript, in a TDD fashion backed by Jest and Testcontainers, and with large transactions split into multiple Cypher queries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published