Release candidate 1

This commit is contained in:
2022-02-22 20:16:27 +00:00
parent e80bbba302
commit 6b54edb8fe
3 changed files with 29 additions and 3 deletions

View File

@@ -14,6 +14,32 @@ The handler's definition is left up to the user.
* Each top-level keyword (and queries) is optional * Each top-level keyword (and queries) is optional
* No package dependencies * No package dependencies
## Live Demo
Using the following schema:
```
type Weather {
String city
Float latitude
Float longitude
String last_updated
Float temp_c
Float temp_f
String condition
Float wind_mph
Float wind_kph
String wind_dir
}
```
You can match any city OR any latitude + longitude, then query any of the other fields.
```bash
curl sineql-demo.krgamestudios.com/sineql -L -X POST -H "Content-Type: text/plain" -d 'Weather { match city "Sydney" temp_c condition }'
```
## Example Server ## Example Server
A simple express server using sineQL. A simple express server using sineQL.

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "sineql", "name": "sineql",
"version": "0.5.1", "version": "0.5.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sineql", "name": "sineql",
"version": "0.5.1", "version": "0.5.2",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"jest": "^27.5.1" "jest": "^27.5.1"

View File

@@ -1,6 +1,6 @@
{ {
"name": "sineql", "name": "sineql",
"version": "0.5.1", "version": "0.5.2",
"description": "A simple to use graphQL clone", "description": "A simple to use graphQL clone",
"main": "source/index.js", "main": "source/index.js",
"scripts": { "scripts": {