Giter VIP home page Giter VIP logo

nestjs-kysely's People

Contributors

aaronperezperez avatar alexshuhin avatar igalklebanov avatar kazu728 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nestjs-kysely's Issues

Cannot find module 'nestjs-kysely' or its corresponding type declarations

Problem:

Example fails to launch: cannot find type declarations.

Steps to reproduce:

  1. Clone the repository
  2. cd to examples dir
  3. Install dependencies (pnpm install)
  4. Add missing dependencies (pnpm install kysely nestjs-kysely)
  5. Run NestJS (pnpm run start:dev)

Result:

src/app.controller.ts:2:30 - error TS2307: Cannot find module 'nestjs-kysely' or its corresponding type declarations.

2 import { InjectKysely } from 'nestjs-kysely';

NestJS 9: `InjectKysley` type error Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.

When injecting the kysley module with InjectKysely in NestJS 9 there is a type error:

TS1239: Unable to resolve signature of parameter decorator when called as an expression.   Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.

This seems to be stemming from the fact that when the package is being published, it is being published with NestJS 8 as it's dependency, which results in the wrong typings for the decorator when using it in NestJS 9.

Raw query

How to perform raw queries like in Kysely?

import { sql } from 'kysely';

const raw = sql`select * from users`;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.