Last active
October 29, 2023 19:03
-
-
Save Konard/750aa5298555ee66e5da79e7b180fe53 to your computer and use it in GitHub Desktop.
Sync handlers examples for Deep (http://github.com/deep-foundation)
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
() => { | |
return "result"; | |
} |
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
({deep, data}) => { | |
const userId = data.newLink.id; | |
const joinTypeId = deep.id('@deep-foundation/core', 'Join'); | |
const adminId = deep.id('deep', 'admin'); | |
return deep.insert({ type_id: joinTypeId, from_id: userId, to_id: adminId }); | |
} |
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
({deep, data}) => { | |
const linkId = data.newLink.id; | |
return "result"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment