Anurag Kumar
Anurag Kumar
PlanetScale doesn't support FOREIGN KEY constraints. https://planetscale.com/docs/learn/operating-without-foreign-key-constraints Edit `countryId: int('country_id').references(() => countries.id)` to `countryId: int('country_id')`
I also thought that params can also be inferred from url. [This ](https://www.typescriptlang.org/play?ssl=4&ssc=56&pln=1&pc=1#code/C4TwDgpgBAogHsATgQwMbAArJQWwM4A8WwAFlBAhAHYAmeUeSAllQOYB8UAvA82+ZVr1iJAFBQoAfigAlCKgD2iGgUaIWrADS91bduKgAuKCIHBqdKAAMAJAG8WAMwiIoAZWDZgAX0P2nLibYyDjeAPT+VM6ucozeVgbSdlAA2gDSUCxBuFAAPlAA1hAgCo6wCCjoWLiEVhF2sT5W7AC6xmoaUN4GxqYU5kLWkdHunog+fg5RgdUh8YlQyemZVNkhbTqd3RLGVBAAbi6ioqCQa-jc5UhomMH4BABEYYYArnguVCEQz584EA-6IA) can be used to extract params from url. For test I think I should first write test...
Hi! @eexit I was trying to find a way to do it. After a bit of reasearch I found that we can do that very easily with little bit of...
I fully agree with @pi0. @enkot, Generally APIs `ErrorResponse` schema is same for every routes. So, another way to achieve it would be we expose ErrorResponse interface which will be...
Related issues & PR: https://github.com/unjs/nitro/pull/1532 https://github.com/nuxt/nuxt/issues/23009
Things I want to discuss? - [ ] Should we force user to pass a method when Methods union doesn't include "get"? - [ ] Return response type for "get"...
Prove of concept of types working with nitro https://github.com/anuragkumar19/nitro/tree/types-request-poc. It is in the playground. Note: It is just a prove of concept, I rushed it to show how future API...
> @anuragkumar19 Feel free to draft a PR btw! I will do it.
@wadeV12 I think it will work in current implementation. I will cross check it anyway.
@pi0 The above code you have given is invalidating all cache. It will be nice to have utils to invalidate specific cache. Any reference to how cache key are generated?