I want connect to oracle with typeorm
createConnection().then(async connection => {
const app = express();
const userRepository = getRepository(User);
const users = await userRepository.find();
console.log(users);
app.listen(3000);
}).catch(error => console.log("xxx",error));
ormconfig.json is in ./Myproject/ormconfig.json but say error :Error: No connection options were found in any orm configuration files.
With these settings , I was already connected to the database with the oracledb.
Please help me
UPDATE
I generate project with this typeorm init --name MyProject --database oracle.
This is typeorm default structure.
