https://kotlinlang.org logo
#kotless
Title
# kotless
m

Mattlangsenkamp

10/07/2020, 3:07 PM
Sorry to clog this chat but here i am again. I am using ktor with kgraphql. Before I was just executing the schema from inside a /graphql post route, which made it possible for kotless to deploy the lambda. I just switched over to using the kgraphql plugin (https://kgraphql.io/Plugins/ktor/) to gain access to the graphql playground for testing. The code works well when run locally however now cus there is no actually defined route kotless cannot seem to correctly configure api gateway. The route is still a POST method at /graphql, that information is just obscured now. Is there a way for me to manually define how api gateway should be created or to otherwise work around this? Below is the error I get as well as the branch im working on:
t

TanVD

10/07/2020, 4:08 PM
Hm, I would say that right now it is impossible :(
m

Mattlangsenkamp

10/07/2020, 4:09 PM
😞
t

TanVD

10/07/2020, 4:09 PM
In that case, instead of adding dsl to manually specify parameters I would better fix actual problem — Kotless is unable to introspect generated code
I am working on it — probably it is possible to fix :)
m

Mattlangsenkamp

10/07/2020, 4:09 PM
🙂
t

TanVD

10/07/2020, 4:10 PM
There is a bypass, you can try to add as a terraform extension the code Kotless has been previously generating for your route
But is pretty hacky:(
I mean — api_gateway_resource/method
m

Mattlangsenkamp

10/07/2020, 4:11 PM
that makes sense
I will give that a try
2 Views