m

    Mattlangsenkamp

    1 year ago
    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:
    TanVD

    TanVD

    1 year ago
    Hm, I would say that right now it is impossible 😦
    m

    Mattlangsenkamp

    1 year ago
    😞
    TanVD

    TanVD

    1 year ago
    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

    1 year ago
    🙂
    TanVD

    TanVD

    1 year ago
    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

    1 year ago
    that makes sense
    I will give that a try