From 6b54edb8fe7293e41d33e448aee73d06a9c088fa Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Tue, 22 Feb 2022 20:16:27 +0000 Subject: [PATCH] Release candidate 1 --- README.md | 26 ++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27814d2..2699406 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,32 @@ The handler's definition is left up to the user. * Each top-level keyword (and queries) is optional * 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 A simple express server using sineQL. diff --git a/package-lock.json b/package-lock.json index c04f211..3ca06cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sineql", - "version": "0.5.1", + "version": "0.5.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sineql", - "version": "0.5.1", + "version": "0.5.2", "license": "ISC", "devDependencies": { "jest": "^27.5.1" diff --git a/package.json b/package.json index 68011dc..9b846f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sineql", - "version": "0.5.1", + "version": "0.5.2", "description": "A simple to use graphQL clone", "main": "source/index.js", "scripts": {