Comments (3)
I like your tags :) The problem with this is that the index very much behaves like an ===
comparison. What you pass in, is what you get out. So if you index ['lekker, 'belgisch']
, you would have to pass not just an identical array to match the original, but the exact reference to the array you indexed the resource with (in other words: pretty much useless).
Changing the implementation to support arrays as you suggest, seems very painful for performance (which goes counter to what we expect from an index). It may be easier in your case to keep a tag lookup map elsewhere (close to your persistence layer for example). Let me know if that poses serious challenges.
from express-rested.
Joost, can I close this issue? (if I've answered your question to your satisfaction)
from express-rested.
I found a way around this, so you can close this issue. Thanks!
from express-rested.
Related Issues (20)
- Support getJson (etc) to allow JSON responses to be filtered or altered
- Add an option to return collections as arrays and not just maps
- Add request/response dumps to the readme
- First examples in readme fail
- More verbose errors for the client HOT 2
- Implement caching in full
- If rights-functions throw, we don't catch it HOT 1
- Make getMapRef a public API
- Indexing in collections
- Required refactoring
- Add tests and fix issues with slashes in IDs
- Pagination
- Possible requirement for an asynchronous collection.get() HOT 1
- Version mismatch on npm HOT 2
- Re-attach prototype HOT 2
- Index not updated when resource is modified HOT 3
- Allow requests to always hit an asynchronous data store
- API is case sensitive HOT 4
- Documentation not matching 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 express-rested.