mongoqcm's People
mongoqcm's Issues
Il était préférable d'utiliser le système de ref pour simplifier ensuite les requêtes.
Line 8 in a35b1f9
Cela aurait permis d'utiliser le système de jointure de Mongoose :
questions: [{type: Schema.Types.ObjectId, ref: 'Question'}]
Il manque la possibilité de filtrer les résultats sur la recherche des questions
Lines 8 to 11 in a35b1f9
Cette fonctionnalité est plus importante que sur les subjects car il faut pouvoir récupérer l'ensemble des questions liées à un subject.
Simplifier le code source de la route POST /questions
Lines 34 to 40 in a35b1f9
La requête ligne 35 n'est pas nécessaire car la variable subject
est déjà retournée par la requête update au dessus.
Bonne gestion des erreurs cependant dans cette fonction qui n'était pas évidente à écrire lorsque les questions sont imbriquées dans les subjects 👍
Il manque la possibilité de filtrer les résultats sur la recherche des subjects
Lines 8 to 17 in a35b1f9
Ici il manque les appels de .limit() et .skip() pour limiter le nombre de résultats.
Il manque la liste des questions associé à un subject
Line 22 in a35b1f9
Ici, il fallait utiliser populate() ou bien faire une autre requêtes pour récupérer la liste des questions liées au sujet retourné.
La route /questions/:id devrait retourner une question
Lines 14 to 26 in a35b1f9
Ici, la route retourne l'ensemble des questions d'un ou plusieurs subjects contenant une question avec l'id :id.
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.