Comments (8)
Can you elaborate on how you want it?
from skill-board-api.
Basically you need a route to sort the students based on rating and return it which is in your student schema
from skill-board-api.
can you please assign this issue to me ?
from skill-board-api.
Basically you need a route to sort the students based on rating and return it which is in your student schema
That is a way but a much-optimized one would be doing something like having sort attributes so that we can do dymanic sorting.
from skill-board-api.
Basically you need a route to sort the students based on rating and return it which is in your student schema
That is a way but a much-optimized one would be doing something like having sort attributes so that we can do dymanic sorting.
You can also pass that attribute into the query: https://docs.mongodb.com/manual/reference/method/cursor.sort/#cursor.sort
from skill-board-api.
Basically you need a route to sort the students based on rating and return it which is in your student schema
That is a way but a much-optimized one would be doing something like having sort attributes so that we can do dymanic sorting.
You can also pass that attribute into the query: https://docs.mongodb.com/manual/reference/method/cursor.sort/#cursor.sort
We were planning to do the same.
- create an endpoint that can send the sorted data
- require the attribute from the query
- apply the query on the database
- return the response
The attributes that we will be using to sort the student user are yet to be discussed with our team. We will update the issue asap, then you may start working on it. For now, you may sort the student users based on the rating attribute from the schema and the "rating" attribute must be sent to the server as part of the query string.
from skill-board-api.
@Aditya-Dawadikar
Can I take this up?
from skill-board-api.
Stale issue message
from skill-board-api.
Related Issues (20)
- Routes HOT 1
- Database Schema HOT 1
- Registration for Student , superuser HOT 1
- Login for student and superuser
- Update and delete logic
- JWT HOT 1
- SMTP HOT 1
- Email template addition HOT 1
- Forgot password mechanism
- Handle dupicate email registrations
- Forgot password mechanism needs to be modified
- Sending user id upon successful login
- Add attribute to Schema HOT 1
- Expiration of OTP HOT 4
- Document migration HOT 4
- Create a Search bar api Logic HOT 9
- Filter API to Filter Students Based on rating HOT 6
- Rating API HOT 4
- Accept a key "pronoun" from the request body for registration API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skill-board-api.