mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ae63a3e47 | ||
|
|
10f6369d67 | ||
|
|
366ac10ca0 | ||
|
|
7fbb0d2eb6 | ||
|
|
6301160c64 | ||
|
|
015bab6351 | ||
|
|
a92fb44425 | ||
|
|
fc36138417 | ||
|
|
42c1e3a0bb | ||
|
|
22b9d34562 | ||
|
|
31a13796e8 |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x, 14.x, 16.x]
|
||||
node-version: [12.x, 14.x, 16.x, 18.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
.github
|
||||
test
|
||||
test
|
||||
coverage
|
||||
11
LICENSE
Normal file
11
LICENSE
Normal file
@@ -0,0 +1,11 @@
|
||||
Copyright (c) 2022 Kayne Ruse
|
||||
|
||||
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
||||
|
||||
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
||||
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
@@ -134,6 +134,7 @@ The schema language is a layout of how queries should be made, as well as what c
|
||||
* type
|
||||
* scalar
|
||||
* unique
|
||||
* typeName (this is a reserved keyword - it is not used in either language, but rather is used internally)
|
||||
|
||||
`type` is used for defining new compound types. `scalar` is for defining new scalar types, such as `Date`. `unique` is a modifier on a field, indicating that it is unique in the database.
|
||||
|
||||
@@ -180,13 +181,10 @@ The fields can be altered as well, using the query language's built-in keywords:
|
||||
* update
|
||||
* delete
|
||||
* match
|
||||
* typeName (this is not used in either language, but rather is used internally)
|
||||
|
||||
`create`, `update` and `delete` are still to be defined properly, but they'll probably work as follows.
|
||||
|
||||
### Create
|
||||
|
||||
When using `create`, `match` will find an existing record and associate that with the created values:
|
||||
When using `create`, `match` finds an existing record and associates that with the created values:
|
||||
|
||||
```
|
||||
create Author {
|
||||
@@ -227,7 +225,7 @@ create Book [
|
||||
|
||||
### Update
|
||||
|
||||
When using `update`, `match` will find all existing records and update those using the `update` keyword:
|
||||
When using `update`, `match` finds all existing records and updates those using the `update` keyword:
|
||||
|
||||
```
|
||||
update Book {
|
||||
|
||||
1167
package-lock.json
generated
1167
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "sineql",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "A simple to use graphQL clone",
|
||||
"main": "source/index.js",
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
"test": "jest --coverage --collectCoverageFrom=source/**/*.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -18,7 +18,7 @@
|
||||
"query"
|
||||
],
|
||||
"author": "Kayne Ruse",
|
||||
"license": "ISC",
|
||||
"license": "zlib",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Ratstail91/sineQL/issues"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user