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

26
package-lock.json generated
View File

@@ -1,12 +1,20 @@
{ {
"name": "sineql", "name": "sineql",
<<<<<<< HEAD
"version": "1.0.0", "version": "1.0.0",
=======
"version": "1.0.1",
>>>>>>> origin/main
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sineql", "name": "sineql",
<<<<<<< HEAD
"version": "1.0.0", "version": "1.0.0",
=======
"version": "1.0.1",
>>>>>>> origin/main
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"jest": "^27.5.1" "jest": "^27.5.1"
@@ -3053,6 +3061,15 @@
"node": "*" "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": { "node_modules/ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -6381,6 +6398,15 @@
"brace-expansion": "^1.1.7" "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": { "ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",

View File

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