Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot display the GraphQL playground with Ktor after following the official tutorial #177

Open
ryanzidago opened this issue Jan 13, 2022 · 2 comments

Comments

@ryanzidago
Copy link

Hi all,

I'm following this tutorial from scratch. However, it seems to me that it is not up to date with the newly automatically generated files from ktor.io.

What are the steps required that I should take to make it work with the following specs:

ktor_version=1.6.7
kotlin_version=1.6.10
logback_version=1.2.3
kotlin.code.style=official
kgraphql_version=0.17.14

This is the project that I'm trying to setup. When I boot up the server and visit localhost:8080/graphql I cannot see the playground (but nothing is logged 🤔)

After running gradle --version I get the following output:

❯ gradle --version

------------------------------------------------------------
Gradle 7.3.3
------------------------------------------------------------

Build time:   2021-12-22 12:37:54 UTC
Revision:     6f556c80f945dc54b50e0be633da6c62dbe8dc71

Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.1 (Oracle Corporation 17.0.1+12-39)
OS:           Linux 5.4.0-94-generic amd64
@ryanzidago
Copy link
Author

I finally found the culprit: #178 (comment)

@ismartcoding
Copy link

I think no need to integrate the playground. You can use Insomnia to test your api.

KGraphQL is a great library, it is easier to use than the expediagroup one. I don't like the expediagroup one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants