Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //collection 1
- game {
- // documents
- {
- _id: 1,
- shortName: "OOT",
- fullName: "Ocarina of Time",
- urlImage: "./oot.png"
- },
- {
- _id: 2,
- shortName: "BoTW",
- fullName: "Breath of the Wild",
- urlImage: "./botw.png"
- }
- ...
- }
- //collection 2
- routes {
- // documents
- {
- _id: 1,
- routeName: "Some route on OOT - remember this name",
- gameID: 1,
- fastestTime: 1.24
- },
- {
- _id: 2,
- routeName: "Some SECOND route on OOT",
- gameID: 1,
- fastestTime: 1.31
- },{
- _id: 3,
- routeName: "Some route on a different game thats on OOT but it is also in the same collection, but it has a different game ID",
- gameID: 7,
- fastestTime: 1.24
- },
- ...
- }
- //now I want to load the routes, all I need to do is filter the whole routes collection by {gameID:1} and you get all routes for OOT
- //collection 3
- segments {
- // documents
- {
- _id: 1,
- segmentName: "Some segment on route: Some route on OOT - remember this name",
- routeID: 1,
- time: 1.24
- },
- {
- _id: 2,
- routeName: "Some SECOND segment the same route as above on OOT",
- routeID: 1,
- time: 1.55
- },{
- _id: 3,
- routeName: "Some segment from some other route, maybe even another game, but thats fine",
- routeID: 4,
- time: 1.55
- },
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement