title: can i access sequelize from outside the database provider writing raw query in nestjs using sequelize
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>export const databaseProviders = [
    {
      provide: 'Sequelize',
      useFactory: async () =&gt; {
        const sequelize = new Sequelize({
          dialect: 'postgres',
          host: process.env.PG_HOST,
          port: Number(process.env.PG_PORT),
          database: process.env.PG_DATABASE,
          username: process.env.PG_USERNAME,
          password: process.env.PG_PASSWORD,
        });
        sequelize.addModels([OrderModule]);
        await sequelize.sync();
        return sequelize;
      },
    },
  ];</code></pre>
  </div>
  </div>
  </p>
  <p>Can I access the sequelize outside the file, so that i can use raw queries?
  Is there decorator or something which i can use to access the sequelize to write the raw queries.</p>