
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
neo-for-nest
Advanced tools
Neo4j integration for Nest.js
This repository provides Neo4j integration for Nest.
$ npm i --save neo-for-nest
Register the Neo4j Module in your application using the forRoot method, passing the neo4j connection information as an object:
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Neo4jModule, Neo4jModule } from 'neo-for-nest'
@Module({
imports: [
Neo4jModule.forRootAsync({
imports: [ConfigModule],
useFactory: () => {
return {
inject: [ConfigService],
scheme: 'neo4j',
host: 'localhost',
port: 7687,
username: 'neo4j',
password: 'neo4j',
//password: 'l1Ohm2LXEKWb0pKzKWWhLSO-lKfBu0s5kOBvdxIaq00',
} as Neo4jConfig;
},
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
The neo-for-nest is @Injectable, so can be passed into any constructor:
import { Neo4jService } from 'neo-for-nest'
@Controller()
export class AppController {
constructor(private readonly appService: AppService,
private readonly neo4jService: Neo4jService
) {}
@Get()
async getHello(): Promise<any> {
const res = await this.neo4jService.read(`MATCH (n) RETURN count(n) AS count`)
return `There are ${res.records[0].get('count')} nodes in the database`
}
}
getConfig(): Neo4jConfig;
getReadSession(database?: string): Session;
getWriteSession(database?: string): Session;
read(query: string, params?: object, database?: string): Result;
write(query: string, params?: object, database?: string): Result;
https://github.com/adam-cowley/nest-neo4j
FAQs
<img src="https://dist.neo4j.com/wp-content/uploads/20140
The npm package neo-for-nest receives a total of 11 weekly downloads. As such, neo-for-nest popularity was classified as not popular.
We found that neo-for-nest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.