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-06-28 17:32:02 +02:00
2024-04-23 11:22:31 +02:00
2024-06-12 21:13:18 +02:00
2024-07-17 17:53:01 +02:00
2024-07-17 17:53:01 +02:00
2024-07-16 14:38:17 +02:00
2024-07-11 08:15:49 +02:00
2024-07-17 14:52:17 +02:00
2024-07-17 11:43:57 +02:00
2024-07-16 14:38:17 +02:00
2024-06-27 11:28:03 +02:00
2024-07-16 14:38:17 +02:00
2024-07-08 09:11:47 +02:00
2024-04-19 18:28:02 +02:00
2024-04-25 23:52:28 +02:00
2024-05-17 16:36:28 +02:00
2024-04-04 15:38:01 +02:00
2023-12-10 18:10:54 +01:00