Open dan-klasson opened 4 years ago
Hello,
Yes it is entirely possible. To answer both your questions : 1/ the orders of the type declaration changed with #20, I forgot to update the docs to reflect that, mea culpa. 2/ The provided example should indeed work and is a usecase we have internally. Could you link to a minimal repro repo ?
@Superd22 Here's a minimal reproducible repo:
https://github.com/dan-klasson/project-autorelay
Run npm i
, npm run-script build
and npm start
.
Hey @dan-klasson thanks for taking the time to make a repro repo. It seems to be an issue with using nests js' integration with typegraphql rather than vanilla.
I'll look into it further
hello, was this fixed?
I'll try and have a look at this in the next few days :)
@Superd22 Did you get a chance to look at this? Do you have any pointers you can share?
Any updates?
@kodeine and @dzcpy
just use this: https://github.com/doug-martin/nestjs-query
@dan-klasson Thanks for your reply, nestjs-query seems good. But it doesn't have a mikro-orm adapter which is what I'm currently using..
According to the documentation this library has two goals:
I'm trying to just implement pagination on my
user
model without any relationships. Is that even possible? This is what I've tried:And the stacktrace I'm getting:
It's taken straight from the documentation. But I had to switch the order of the type declaration of the return Promise to get it to compile. What am I missing here?