This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [ | |
{ | |
name: 'Campaign', | |
primaryKey: '_id', | |
properties: { | |
_id: 'objectId', | |
_externalId: 'string', | |
alternateTrackingId: 'string?', | |
createdDate: 'date?', | |
name: 'string?', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Service A | |
const resolvers = { | |
User: { | |
id(parent) { | |
return parent.Id; | |
}, | |
}, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exclude = set(['Plugin/DebugKit','Vendor','webroot/min']) | |
for root, dirs, files in os.walk('/var/www/html/myproject/app', topdown=True): | |
dirs[:] = [d for d in dirs if d not in exclude] | |
for file in files: | |
if file.endswith(('.php','.ctp')): | |
print root, '/', file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in LinkedinPerson | |
public $hasMany = array( | |
'LinkedinRecommendation' => array( | |
'className' => 'LinkedinRecommendation', | |
'foreignKey' => false, | |
'dependent' => true, | |
), | |
) |