This is a REPL for playing around with the GraphQL Lexer I've written for the graphql-swift
repository.
Start by cloning this repository:
git clone [email protected]:slashmo/graphql-swift-repl.git
If you already have Swift 4.2 installed on your Mac it's as easy as executing swift run
inside this project's root folder.
I've provided a Dockerfile
for those who prefer to run the REPL inside a container. Execute the following lines to get up & running:
docker build -t slashmo/graphql-swift-repl .
docker run -it --rm slashmo/graphql-swift-repl
Depending on your internet connection this will take a few minutes.
# valid query
query {
repository(owner: "apple", name: "swift") {
stargazers {
totalCount
}
}
}
# invalid query
query {
repository(owner: "apple", name: "swift) {
stargazers {
totalCount
}
}
}