11 Commits

Author SHA1 Message Date
Kayne Ruse
0ae63a3e47 Added node 18.x to list of supported node versions 2022-06-29 02:24:57 +01:00
Kayne Ruse
10f6369d67 Switched to the zlib license 2022-06-29 02:07:43 +01:00
Kayne Ruse
366ac10ca0 Fixed merge conflict artefacts 2022-06-29 02:03:39 +01:00
Kayne Ruse
7fbb0d2eb6 Merged from github 2022-06-29 01:55:09 +01:00
Kayne Ruse
6301160c64 Updated dependencies 2022-06-29 01:53:12 +01:00
Kayne Ruse
015bab6351 Added coverage to the test 2022-06-29 01:50:45 +01:00
Kayne Ruse
a92fb44425 Bumped patch version number 2022-05-07 00:29:17 +10:00
Kayne Ruse
fc36138417 Tweaked README.md 2022-05-07 00:25:30 +10:00
Kayne Ruse
42c1e3a0bb Tweaked README.md 2022-05-07 00:23:04 +10:00
Kayne Ruse
22b9d34562 Merge pull request #5 from Ratstail91/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-04-04 06:27:49 +10:00
dependabot[bot]
31a13796e8 Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 00:22:49 +00:00
6 changed files with 628 additions and 569 deletions

View File

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

View File

@@ -1,2 +1,3 @@
.github
test
test
coverage

11
LICENSE Normal file
View 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.

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 {

1167
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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"
},