-
Notifications
You must be signed in to change notification settings - Fork 2
Fix total count value returned in book listing endpoint #1
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
Comments
I would like to take this please assign it to me. |
@shivam15 Thank you for your interest. You will have to add a few records in your local mongodb (see README). Please go ahead and create a PR. |
@repl can you update readme for deploying scala backend? |
@shivam15 The service is run using bootRun task of gradle. I have updated the readme as well. |
@repl created pull request please check. |
Can you please find the total in one call to mongodb? This is what I was
trying to implement.
…On Sat, Apr 13, 2019, 3:46 AM Shivam Sarawagi ***@***.***> wrote:
@repl <https://github.com/repl> created pull request please check.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhGypabeQD_J1dFYEA74OoH9w8QmZ2_ks5vgbV1gaJpZM4cdf3z>
.
|
Do you think its possible since you are passing limit and skip in the first query. How will you get total count in same? |
Please analyze if any composite aggregate query can be formed.
…On Sat, Apr 13, 2019, 8:22 PM Shivam Sarawagi ***@***.***> wrote:
Do you think its possible since you are passing limit and skip in the
first query. How will you get total count in same?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhGyoHfaoLZwjjlgqJ7zJhUTqSTZ8e8ks5vgp79gaJpZM4cdf3z>
.
|
The endpoint /api/v1/books' returns books in a paginated way and each response payload also includes an attribute total count which will help the caller to show the total number of pages. The total count needs to be calculated using mongodb operations using spring data methods.
The text was updated successfully, but these errors were encountered: