You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A super useful tool would be a simple .find() wrapper around a request that handles pagination, and supports fuzzy string matching, perhaps with a threshold?
If using promises the code could be really clean because could do Course(12345).students().find(cb) but that wouldn't be able to handle pages... So Course(12345).allPage().students().find(cb) or Course(12345).find(term).students(cb)
cb could either be a callback or replaced with .then() potentially...
The text was updated successfully, but these errors were encountered:
cycomachead
changed the title
"Find" wrapper for a get request
Supper Easy fuzzy matching
Nov 23, 2015
A super useful tool would be a simple
.find()
wrapper around a request that handles pagination, and supports fuzzy string matching, perhaps with a threshold?If using promises the code could be really clean because could do
Course(12345).students().find(cb)
but that wouldn't be able to handle pages... SoCourse(12345).allPage().students().find(cb)
orCourse(12345).find(term).students(cb)
cb
could either be a callback or replaced with .then() potentially...The text was updated successfully, but these errors were encountered: