https://github.com/slashmo/graphql-swift-repl
REPL for my GraphQL Lexer 💻📝
https://github.com/slashmo/graphql-swift-repl
demo graphql lexer repl swift
Last synced: about 1 month ago
JSON representation
REPL for my GraphQL Lexer 💻📝
- Host: GitHub
- URL: https://github.com/slashmo/graphql-swift-repl
- Owner: slashmo
- License: mit
- Created: 2018-12-09T15:34:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T22:55:20.000Z (over 7 years ago)
- Last Synced: 2025-07-06T18:59:00.642Z (12 months ago)
- Topics: demo, graphql, lexer, repl, swift
- Language: Swift
- Homepage: https://github.com/ocelotgraphql/graphql-swift
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL Swift REPL
This is a REPL for playing around with the GraphQL Lexer I've written for the [`graphql-swift`](https://github.com/ocelotgraphql/graphql-swift) repository.
## Installation
Start by cloning this repository:
``` sh
git clone git@github.com:slashmo/graphql-swift-repl.git
```
### macOS (without Docker)
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.
### Any platform (using Docker)
I've provided a `Dockerfile` for those who prefer to run the REPL inside a container. Execute the following lines to get up & running:
``` sh
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.
## Example queries
``` graphql
# valid query
query {
repository(owner: "apple", name: "swift") {
stargazers {
totalCount
}
}
}
```
``` graphql
# invalid query
query {
repository(owner: "apple", name: "swift) {
stargazers {
totalCount
}
}
}
```