martmull
47ddc7be83
6181 workflows create a custom code executor (#6235)
Closes #6181
## Testing
- download Altair graphql dev tool https://altairgraphql.dev/#download
- create a file locally `test.ts` containing:
```
export const handler = async (event: object, context: object) => {
return { test: 'toto', data: event['data'] };
}
```
- play those requests in Altair:
mutation UpsertFunction($file: Upload!) {
upsertFunction(name: "toto", file: $file)
}
mutation ExecFunction {
executeFunction(name:"toto", payload: {data: "titi"})
}
- it will run the local driver, add those env variable to test with
lambda driver
```
CUSTOM_CODE_ENGINE_DRIVER_TYPE=lambda
LAMBDA_REGION=eu-west-2
LAMBDA_ROLE=<ASK_ME>
```
2024-07-17 17:53:01 +02:00
..
2024-07-08 17:01:06 +02:00
2024-06-23 20:12:18 +02:00
2024-06-17 09:49:37 +02:00
2024-07-17 17:53:01 +02:00
2024-06-26 11:39:16 +02:00
2024-07-12 17:56:21 +02:00
2024-07-17 17:53:01 +02:00
2024-07-04 10:21:33 +02:00
2024-07-04 08:57:26 +02:00
2024-03-15 18:37:09 +01:00
2024-07-12 20:15:33 +02:00
2024-07-17 17:53:01 +02:00
2024-07-17 17:53:01 +02:00