A managed function is a function that's managed and deployed by Graphcool (think of Graphcool as your FaaS provider for managed functions). If you're using a managed function in your Graphcool project, all you need to do is write the code for it, add it to your service definition file and run
graphcool deploy. Graphcool will then make sure the function is deployed for you
There are two ways of doing this:
For simple use cases, such as validating an email address or sanitizing a credit card number, using a hook function is usually a good choice.
graphcool-liband how can I use it?
graphcool-lib provides a convenient interface to the Graphcool system:
Here's some functionality it offers:
If you want to use it inside a managed function, you can simply
require it (similar to here). In a webhook, you can install it as a dependency with npm.
Was this page helpful?