This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:
http://json-ld.org/playground#/gist/<gist id>
| { | |
| "@context": { | |
| "@vocab": "https://www.iana.org/assignments/link-relations/", | |
| "anchor": "@id", | |
| "href": "@id", | |
| "dct": "http://purl.org/dc/terms/", | |
| "link": "https://www.iana.org/assignments/link-relations#", | |
| "title": "http://purl.org/dc/terms/title" | |
| "title*": "http://purl.org/dc/terms/title" | |
| "type": "dct:format", |
This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:
http://json-ld.org/playground#/gist/<gist id>
| module.exports.getConversationsForUser = function (user, cb) { | |
| db.query( | |
| function (doc) { | |
| if (doc.author) { | |
| emit(doc.author) | |
| } | |
| }, | |
| {include_docs: true, key: user.userId} | |
| ).then(function (response) { | |
| // response.doc should have the whole doc |
| <?php | |
| class Post | |
| { | |
| protected $table = 'posts'; | |
| /** | |
| * You can define your own custom boot method. | |
| * | |
| * @return void | |
| **/ |