mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 18:54:27 +11:00
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
062d65d7bb | ||
|
|
fe7229c17d | ||
|
|
7e11a582c9 | ||
|
|
42475a5a72 | ||
|
|
3b7feb37bd | ||
|
|
f113938118 | ||
|
|
2053ddfe5c | ||
|
|
dc1f1cd98c | ||
|
|
941af6ca2b | ||
|
|
bbb26388dd | ||
|
|
cf5baa7feb | ||
|
|
ebde2850f4 | ||
|
|
e272b91514 | ||
|
|
29354276a9 | ||
|
|
2b28c3eb6c | ||
|
|
68ef884e9c | ||
|
|
cfbb4407ba | ||
|
|
bda8f970d4 | ||
|
|
011bb59772 | ||
|
|
256f834d2c | ||
|
|
1107c45dcb | ||
|
|
0ae63a3e47 | ||
|
|
10f6369d67 | ||
|
|
366ac10ca0 | ||
|
|
7fbb0d2eb6 | ||
|
|
6301160c64 | ||
|
|
015bab6351 | ||
|
|
a92fb44425 | ||
|
|
fc36138417 | ||
|
|
42c1e3a0bb | ||
|
|
22b9d34562 | ||
|
|
31a13796e8 |
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -16,13 +16,13 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [22.x, 24.x]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v5
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
.github
|
.github
|
||||||
test
|
test
|
||||||
|
coverage
|
||||||
11
LICENSE
Normal file
11
LICENSE
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Copyright (c) 2022-2023 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
|
* type
|
||||||
* scalar
|
* scalar
|
||||||
* unique
|
* 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.
|
`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
|
* update
|
||||||
* delete
|
* delete
|
||||||
* match
|
* 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
|
### 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 {
|
create Author {
|
||||||
@@ -227,7 +225,7 @@ create Book [
|
|||||||
|
|
||||||
### Update
|
### 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 {
|
update Book {
|
||||||
|
|||||||
5029
package-lock.json
generated
5029
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "sineql",
|
"name": "sineql",
|
||||||
"version": "1.0.0",
|
"version": "1.0.5",
|
||||||
"description": "A simple to use graphQL clone",
|
"description": "A simple to use graphQL clone",
|
||||||
"main": "source/index.js",
|
"main": "source/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest"
|
"test": "jest --coverage --collectCoverageFrom=source/**/*.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"query"
|
"query"
|
||||||
],
|
],
|
||||||
"author": "Kayne Ruse",
|
"author": "Kayne Ruse",
|
||||||
"license": "ISC",
|
"license": "zlib",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Ratstail91/sineQL/issues"
|
"url": "https://github.com/Ratstail91/sineQL/issues"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user