-
Notifications
You must be signed in to change notification settings - Fork 11
Added aggregate methods #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.13.13 to 7.23.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [axios](https://github.com/axios/axios) from 0.21.2 to 1.6.0. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v0.21.2...v1.6.0) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
query.withCount() query.withExists() query.withSum() query.withAvg() query.withMin() query.withMax()
Hi @StemateF, Thank you for the PR! Overall it looks good, as for the tests - integration tests are built on top of MirageJS, you can take a look at their docs to get yourself familiar with the concept, as well as check out the |
Merge pull request tailflow#41 from tailflow/dependabot/npm_and_yarn/axios-1.6.0
Merge pull request tailflow#40 from tailflow/dependabot/npm_and_yarn/babel/traverse-7.23.2
@alexzarbn Done. |
Hi @StemateF, Awesome, looking great overall! One fix is required before I merge this - TS complains about missing information in runtime. |
Added types to with(), .withCount(), .withExists()
query.withCount() query.withExists() query.withSum() query.withAvg() query.withMin() query.withMax()
Added types to with(), .withCount(), .withExists()
# Conflicts: # tests/integration/orion.test.ts
Hi @alexzarbn, I've addressed the TypeScript errors in the code, funny enough I had to update my ts for the errors to come up on my end. Additionally, I have included types for the I'm open to increasing the depth to a larger value if needed, but implementing recursion could pose challenges. This is particularly true when two models reference each other, resulting in a scenario where the type becomes something like |
@StemateF Thank you for the quick update! I would suggest not to introduce breaking changes for now and leave the Also, I'm not sure if using |
@alexzarbn I undid the changes to the with method. I am not sure I understand what you mean by "runtim" you mean the transpiled version of the sdk? The one in lib? |
Now that i look at this, I realized that the new methods will suffer from the same issue I highlighted in my previous comment "#42 (comment)". Might be best to just give up on types for the relations names as it might be limiting for some users. |
@StemateF What I mean is the js output that, when used, might not work correctly, since it does not have the type information. I will merge it as is, and will see, if any issues pop up. |
@alexzarbn Sounds good, thanks. Is there a planned release for the new version of the sdk on NPM ? |
Published v4.1.0 just now |
Hi there,
I added missing aggregate functions.
Unfortunately I will need some help with the tests, I couldn't figure out how the whole test setup actually works 😢.
@alexzarbn Please let me know what you think, if you have suggestions on improving this.
Thanks