3 ms·
If I remember correctly mongo stores the id in “_id” and has a getter for “id” so maybe they just iterated all the keys of the model when they stringified their
by kevindurb 6y ago
If I remember correctly mongo stores the id in “_id” and has a getter for “id” so maybe they just iterated all the keys of the model when they stringified their output
- kijin 6y agoElasticsearch, too. In either case, it looks like they're just piping raw backend responses to the API endpoint without removing unnecessary fields.
- developer2 6y agoYep, that's an indication of Elasticsearch being used (and not transforming documents to a standard representation that strips such fields).
- ashtonkem 6y agoIt seems like they basically just exposed a lot of data directly, as apparently most of their APIs didn’t enforce any authentication or hide records that had been soft deleted. Apparently the records were strictly sequential, which I don’t believe is true for Mongo which IIRC includes the node ID in part of it.