Skip to content

Commit

Permalink
Merge pull request #19 from FalkorDB/6.0.0
Browse files Browse the repository at this point in the history
fix #18 Update version to 6.0
  • Loading branch information
gkorland authored Mar 24, 2024
2 parents 03168ca + fdcbdd5 commit a1cdebc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# falkordb-ts

[![Tests](https://img.shields.io/github/actions/workflow/status/falkordb/falkordb-ts/tests.yml?branch=master)](https://github.com/falkordb/falkordb-ts/actions/workflows/tests.yml)
[![Coverage](https://codecov.io/gh/falkordb/falkordb-ts/branch/master/graph/badge.svg?token=xcfqHhJC37)](https://codecov.io/gh/falkordb/falkordb-ts)
[![Tests](https://img.shields.io/github/actions/workflow/status/falkordb/falkordb-ts/node.js.yml?branch=main)](https://github.com/falkordb/falkordb-ts/actions/workflows/node.js.yml)
[![Coverage](https://codecov.io/gh/falkordb/falkordb-ts/branch/master/graph/badge.svg?token=nNxm2N0Xrl)](https://codecov.io/gh/falkordb/falkordb-ts)
[![License](https://img.shields.io/github/license/falkordb/falkordb-ts.svg)](https://github.com/falkordb/falkordb-ts/blob/master/LICENSE)

[![Discord](https://img.shields.io/discord/1146782921294884966.svg?style=social&logo=discord)](https://discord.com/invite/99y2Ubh6tg)
Expand Down Expand Up @@ -30,17 +30,24 @@ npm install falkordb
```typescript
import { FalkorDB } from 'falkordb';

const db = await FalkorDB.connect()
const db = await FalkorDB.connect({
username: 'myUsername',
password: 'myPassword',
socket: {
host: 'localhost',
port: 6379
}
})

console.log('Connected to FalkorDB')

const graph = db.selectGraph('myGraph')
const result = await graph.query('MATCH (n) RETURN n')

const result = await graph.query('MATCH (n) RETURN n')
console.log(result)

console.log(await db.list())
console.log(await db.info())
console.log(await db.connection.info())

db.close()
```
Expand Down
9 changes: 8 additions & 1 deletion examples/connect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { FalkorDB } from 'falkordb';

const db = await FalkorDB.connect()
const db = await FalkorDB.connect({
username: 'myUsername',
password: 'myPassword',
socket: {
host: 'localhost',
port: 6379
}
})
db.on('error', console.error)

console.log('Connected to FalkorDB')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "falkordb",
"version": "6.0.0-beta.4",
"version": "6.0.0",
"description": "A FalkorDB javascript library",
"license": "MIT",
"main": "./dist/index.js",
Expand Down

0 comments on commit a1cdebc

Please sign in to comment.