Skip to content

jonathanhudak/goplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prereq

Install

  • dep ensure

References

Auth

Mongo

$lookup

// mongo
> db.habits.insertOne({ "name": "Commit code today" });
{
	"acknowledged" : true,
	"insertedId" : ObjectId("5dbc949c729c5cf9dc3925b2")
}
> db.logs.insertOne({ "entry": "this app tho", habits: [ObjectId("5dbc949c729c5cf9dc3925b2")] });
{
	"acknowledged" : true,
	"insertedId" : ObjectId("5dbc94bb729c5cf9dc3925b3")
}
> db.logs.aggregate([{ $lookup: { from: "habits", localField: "habits", foreignField: "_id", as: "habits_info"  } }]);
{ "_id" : ObjectId("5dbc94bb729c5cf9dc3925b3"), "entry" : "this app tho", "habits" : [ ObjectId("5dbc949c729c5cf9dc3925b2") ], "habits_info" : [ { "_id" : ObjectId("5dbc949c729c5cf9dc3925b2"), "name" : "Commit code today" } ] }

Pagination

http

Integ tests

Graphql

Deployment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published