It seems to wrap everything together. is it true that using MogoDB ? How do you deal with those complex data ?
Well looking at the API responses one thing is very clear, that they are using MongoDB or some sort of NoSQL solution. With MongoDB most of the times we return the object/document directly without much modifications ... and because of that it will carry a lot of meta-data or data which is not required directly or in-directly.
For information regarding dealing with the data .. You can always ask DQ direct questions with developers of Hashnode.. Sandeep Panda Ipseeta Siddarthan Sarumathi Pandian Kashish Grover
{
"post": {
"downvotedByCurrentUser": false,
"upvotedByCurrentUser": false,
"indexVotedByCurrentUser": -1,
"isFollowing": false,
"_id": "59d247175c5db7fd3178110f",
"followersCount": 1,
"author": {
"beingFollowed": false,
"_id": "57f48b12b63065895dbf44a0",
"username": "chuoke",
"name": "Chuoke ChungYoung",
"photo": "res.cloudinary.com/hashnode/image/upload/v1503657…",
"tagline": "ECRRC.COM's PHPer",
"coverImage": "res.cloudinary.com/hashnode/image/upload/v1475662…",
"badgesAwarded": [],
"totalUpvotesReceived": 3,
"appreciations": [],
"dateJoined": "2016-10-05T05:09:38.711Z",
"socialMedia": {
"linkedin": "",
"stackoverflow": "",
"google": "",
"facebook": "",
"twitter": "twitter.com/ChoukeChungYoun",
"github": "github.com/chuoke",
"website": ""
},
"storiesCreated": [],
"numFollowing": 13,
"numFollowers": 3,
"location": "Hangzhou, Zhejiang, China",
"totalAppreciationBadges": 0,
"id": "57f48b12b63065895dbf44a0"
},
"cuid": "cj8a8wbvk03djvhwtbz4m0hmp",
"slug": "i-want-to-know-what-is-structure-of-hashnodes-data",
"title": "I want to know what is structure of hashnode's data?",
"type": "question",
"url": "",
"pollRunningTime": 1,
"isBroadcast": false,
"__v": 1,
"dateUpdated": "2017-10-02T16:52:23.523Z",
"bookmarkedIn": [],
"hasReward": false,
"isPublication": false,
"numCollapsed": 0,
"duplicatePosts": [],
"isDelisted": false,
"answeredByTarget": false,
"isEngaging": false,
"isActive": true,
"followers": [],
"responseCount": 0,
"questionReplies": [],
"responses": [],
"dateAdded": "2017-10-02T14:03:03.577Z",
"untaggedFrom": [],
"tags": [
{
"_id": "56744722958ef13879b950eb",
"name": "Databases",
"slug": "databases",
"isApproved": true,
"isActive": true,
"mergedWith": null,
"id": "56744722958ef13879b950eb"
},
{
"_id": "567ae5a72b926c3063c3061a",
"name": "Hashnode",
"slug": "hashnode",
"isApproved": true,
"isActive": true,
"mergedWith": null,
"id": "567ae5a72b926c3063c3061a"
}
],
"downvotes": 0,
"upvotes": 0,
"totalPollVotes": 0,
"pollOptions": [],
"hasPolls": false,
"contentMarkdown": "It seems to wrap everything together. is it true that using MogoDB ? How do you deal with those complex data ?\n",
"content": "<p>It seems to wrap everything together. is it true that using MogoDB ? How do you deal with those complex data ?</p>\n",
"brief": "It seems to wrap everything together. is it true that using MogoDB ? How do you deal with those complex data ?",
"coverImage": "",
"views": 3,
"isAnonymous": false,
"originalUrl": "",
"id": "59d247175c5db7fd3178110f"
}
}
Siddarthan Sarumathi Pandian
Full Stack Dev at Agentdesks | Ex Hashnode | Ex Shippable | Ex Altair Engineering
Chuoke, we do use MongoDB as our backend. We don't really deal with a lot of complex data, truth be told. In fact, no database is too complex if you structure your schema correctly and that usually comes with experience. :-)
Sandeep has written a very elaborate answer on our tech stack. Please take a look at it, if you need more details.