Merged from github

This commit is contained in:
2022-06-29 01:54:44 +01:00
3 changed files with 30 additions and 6 deletions

View File

@@ -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 {

26
package-lock.json generated
View File

@@ -1,12 +1,20 @@
{
"name": "sineql",
<<<<<<< HEAD
"version": "1.0.0",
=======
"version": "1.0.1",
>>>>>>> origin/main
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sineql",
<<<<<<< HEAD
"version": "1.0.0",
=======
"version": "1.0.1",
>>>>>>> origin/main
"license": "ISC",
"devDependencies": {
"jest": "^27.5.1"
@@ -3053,6 +3061,15 @@
"node": "*"
}
},
<<<<<<< HEAD
=======
"node_modules/minimist": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
"dev": true
},
>>>>>>> origin/main
"node_modules/ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -6381,6 +6398,15 @@
"brace-expansion": "^1.1.7"
}
},
<<<<<<< HEAD
=======
"minimist": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
"dev": true
},
>>>>>>> origin/main
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",

View File

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