mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Release candidate 1
This commit is contained in:
26
README.md
26
README.md
@@ -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
4
package-lock.json
generated
@@ -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"
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user