rexxars / sql-to-graphql

Generate a GraphQL API based on your SQL database structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect connection object for sqlite database

eduard93 opened this issue · comments

Currently in a generated app database connection object for SQLite database (in config/config.js) is generated like this:

connection: {
        'host': 'localhost',
        'user': 'root',
        'password': '',
        'database': undefined
}

And it should be;

connection: {
        filename: '/relative/path/to/db.sqlite'
}

I generated app using this command:
sql2graphql --db-filename "/path/to/db.sqlite" --backend "sqlite" --output-dir "/path/to/app"