Giter Site home page Giter Site logo

Sort Api about skill-board-api HOT 8 CLOSED

Aditya-Dawadikar avatar Aditya-Dawadikar commented on July 19, 2024
Sort Api

from skill-board-api.

Comments (8)

harikesh409 avatar harikesh409 commented on July 19, 2024

Can you elaborate on how you want it?

from skill-board-api.

megabyte98 avatar megabyte98 commented on July 19, 2024

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.

megabyte98 avatar megabyte98 commented on July 19, 2024

can you please assign this issue to me ?

from skill-board-api.

harikesh409 avatar harikesh409 commented on July 19, 2024

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.

jennypoon avatar jennypoon commented on July 19, 2024

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.

Aditya-Dawadikar avatar Aditya-Dawadikar commented on July 19, 2024

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.

  1. create an endpoint that can send the sorted data
  2. require the attribute from the query
  3. apply the query on the database
  4. 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.

raghavddps2 avatar raghavddps2 commented on July 19, 2024

@Aditya-Dawadikar
Can I take this up?

from skill-board-api.

github-actions avatar github-actions commented on July 19, 2024

Stale issue message

from skill-board-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.