From 11bfe121d33a9f2941c802ce980e60a0006ffd2a Mon Sep 17 00:00:00 2001 From: Mish Ushakov Date: Mon, 8 Jan 2024 14:52:24 +0100 Subject: [PATCH] v0.6.5 --- examples/loader.ts | 2 +- package-lock.json | 4 +- package.json | 2 +- www/api/classes/GarphSchema.md | 60 ++++++++++++++++++---------- www/api/classes/Type.md | 18 ++++----- www/api/index.md | 72 +++++++++++++++++----------------- www/docs/guide/loaders.md | 2 +- 7 files changed, 90 insertions(+), 70 deletions(-) diff --git a/examples/loader.ts b/examples/loader.ts index 788d12d..8dbb890 100644 --- a/examples/loader.ts +++ b/examples/loader.ts @@ -33,7 +33,7 @@ const resolvers: resolverTypes = { }, Dog: { owner: { - load(queries) { + load (queries) { return new Promise(resolve => { setTimeout(() => { resolve(queries.map(q => owners[q.parent.name])) diff --git a/package-lock.json b/package-lock.json index 6abed9c..b7e99ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "garph", - "version": "0.6.4", + "version": "0.6.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "garph", - "version": "0.6.4", + "version": "0.6.5", "license": "MIT", "dependencies": { "graphql-compose": "^9.0.10", diff --git a/package.json b/package.json index fd6acee..44572a4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/stepci/garph" }, - "version": "0.6.4", + "version": "0.6.5", "license": "MIT", "main": "dist/index.js", "scripts": { diff --git a/www/api/classes/GarphSchema.md b/www/api/classes/GarphSchema.md index 4eda432..52987b6 100644 --- a/www/api/classes/GarphSchema.md +++ b/www/api/classes/GarphSchema.md @@ -17,7 +17,7 @@ #### Defined in -[index.ts:618](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L618) +[index.ts:629](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L629) ## Properties @@ -27,7 +27,7 @@ #### Defined in -[index.ts:600](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L600) +[index.ts:601](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L601) ___ @@ -46,7 +46,7 @@ ___ #### Defined in -[index.ts:611](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L611) +[index.ts:612](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L612) ___ @@ -56,7 +56,7 @@ ___ #### Defined in -[index.ts:604](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L604) +[index.ts:605](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L605) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[index.ts:599](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L599) +[index.ts:599](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L599) ## Methods @@ -80,7 +80,7 @@ ___ #### Defined in -[index.ts:703](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L703) +[index.ts:714](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L714) ___ @@ -108,7 +108,7 @@ ___ #### Defined in -[index.ts:634](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L634) +[index.ts:645](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L645) ___ @@ -136,7 +136,7 @@ ___ #### Defined in -[index.ts:644](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L644) +[index.ts:655](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L655) ___ @@ -164,7 +164,7 @@ ___ #### Defined in -[index.ts:663](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L663) +[index.ts:674](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L674) ___ @@ -178,7 +178,7 @@ ___ #### Defined in -[index.ts:699](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L699) +[index.ts:710](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L710) ___ @@ -192,7 +192,7 @@ ___ #### Defined in -[index.ts:691](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L691) +[index.ts:702](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L702) ___ @@ -220,7 +220,7 @@ ___ #### Defined in -[index.ts:657](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L657) +[index.ts:668](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L668) ___ @@ -234,7 +234,7 @@ ___ #### Defined in -[index.ts:695](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L695) +[index.ts:706](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L706) ___ @@ -262,7 +262,7 @@ ___ #### Defined in -[index.ts:681](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L681) +[index.ts:692](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L692) ___ @@ -290,7 +290,7 @@ ___ #### Defined in -[index.ts:628](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L628) +[index.ts:639](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L639) ___ @@ -316,7 +316,27 @@ ___ #### Defined in -[index.ts:709](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L709) +[index.ts:720](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L720) + +___ + +### registerType + +▸ **registerType**(`type`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | [`AnyType`](../index.md#anytype) | + +#### Returns + +`void` + +#### Defined in + +[index.ts:619](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L619) ___ @@ -344,7 +364,7 @@ ___ #### Defined in -[index.ts:675](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L675) +[index.ts:686](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L686) ___ @@ -358,7 +378,7 @@ ___ #### Defined in -[index.ts:687](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L687) +[index.ts:698](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L698) ___ @@ -386,7 +406,7 @@ ___ #### Defined in -[index.ts:622](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L622) +[index.ts:633](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L633) ___ @@ -414,4 +434,4 @@ ___ #### Defined in -[index.ts:669](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L669) +[index.ts:680](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L680) diff --git a/www/api/classes/Type.md b/www/api/classes/Type.md index 6e04e35..4ec5454 100644 --- a/www/api/classes/Type.md +++ b/www/api/classes/Type.md @@ -30,7 +30,7 @@ #### Defined in -[index.ts:13](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L13) +[index.ts:13](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L13) ___ @@ -40,7 +40,7 @@ ___ #### Defined in -[index.ts:11](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L11) +[index.ts:11](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L11) ___ @@ -50,7 +50,7 @@ ___ #### Defined in -[index.ts:10](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L10) +[index.ts:10](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L10) ___ @@ -60,7 +60,7 @@ ___ #### Defined in -[index.ts:9](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L9) +[index.ts:9](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L9) ___ @@ -70,7 +70,7 @@ ___ #### Defined in -[index.ts:12](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L12) +[index.ts:12](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L12) ___ @@ -80,7 +80,7 @@ ___ #### Defined in -[index.ts:14](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L14) +[index.ts:14](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L14) ___ @@ -90,7 +90,7 @@ ___ #### Defined in -[index.ts:15](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L15) +[index.ts:15](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L15) ## Methods @@ -110,7 +110,7 @@ ___ #### Defined in -[index.ts:22](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L22) +[index.ts:22](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L22) ___ @@ -130,4 +130,4 @@ ___ #### Defined in -[index.ts:17](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L17) +[index.ts:17](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L17) diff --git a/www/api/index.md b/www/api/index.md index c7f165a..1e0625e 100644 --- a/www/api/index.md +++ b/www/api/index.md @@ -15,7 +15,7 @@ garph #### Defined in -[index.ts:58](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L58) +[index.ts:58](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L58) ___ @@ -25,7 +25,7 @@ ___ #### Defined in -[index.ts:46](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L46) +[index.ts:46](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L46) ___ @@ -35,7 +35,7 @@ ___ #### Defined in -[index.ts:54](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L54) +[index.ts:54](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L54) ___ @@ -45,7 +45,7 @@ ___ #### Defined in -[index.ts:49](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L49) +[index.ts:49](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L49) ___ @@ -55,7 +55,7 @@ ___ #### Defined in -[index.ts:45](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L45) +[index.ts:45](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L45) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[index.ts:56](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L56) +[index.ts:56](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L56) ___ @@ -75,7 +75,7 @@ ___ #### Defined in -[index.ts:48](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L48) +[index.ts:48](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L48) ___ @@ -85,7 +85,7 @@ ___ #### Defined in -[index.ts:57](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L57) +[index.ts:57](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L57) ___ @@ -95,7 +95,7 @@ ___ #### Defined in -[index.ts:51](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L51) +[index.ts:51](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L51) ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[index.ts:47](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L47) +[index.ts:47](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L47) ___ @@ -115,7 +115,7 @@ ___ #### Defined in -[index.ts:60](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L60) +[index.ts:60](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L60) ___ @@ -129,7 +129,7 @@ ___ #### Defined in -[index.ts:71](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L71) +[index.ts:71](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L71) ___ @@ -139,7 +139,7 @@ ___ #### Defined in -[index.ts:61](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L61) +[index.ts:61](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L61) ___ @@ -149,7 +149,7 @@ ___ #### Defined in -[index.ts:59](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L59) +[index.ts:59](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L59) ___ @@ -159,7 +159,7 @@ ___ #### Defined in -[index.ts:52](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L52) +[index.ts:52](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L52) ___ @@ -169,7 +169,7 @@ ___ #### Defined in -[index.ts:50](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L50) +[index.ts:50](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L50) ___ @@ -179,7 +179,7 @@ ___ #### Defined in -[index.ts:55](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L55) +[index.ts:55](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L55) ___ @@ -189,7 +189,7 @@ ___ #### Defined in -[index.ts:44](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L44) +[index.ts:44](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L44) ___ @@ -199,7 +199,7 @@ ___ #### Defined in -[index.ts:43](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L43) +[index.ts:43](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L43) ___ @@ -213,7 +213,7 @@ ___ #### Defined in -[index.ts:67](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L67) +[index.ts:67](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L67) ___ @@ -223,7 +223,7 @@ ___ #### Defined in -[index.ts:53](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L53) +[index.ts:53](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L53) ___ @@ -237,7 +237,7 @@ ___ #### Defined in -[index.ts:63](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L63) +[index.ts:63](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L63) ___ @@ -254,7 +254,7 @@ ___ #### Defined in -[index.ts:93](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L93) +[index.ts:93](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L93) ___ @@ -270,7 +270,7 @@ ___ #### Defined in -[index.ts:125](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L125) +[index.ts:125](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L125) ___ @@ -286,7 +286,7 @@ ___ #### Defined in -[index.ts:126](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L126) +[index.ts:126](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L126) ___ @@ -302,7 +302,7 @@ ___ #### Defined in -[index.ts:120](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L120) +[index.ts:120](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L120) ___ @@ -318,7 +318,7 @@ ___ #### Defined in -[index.ts:121](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L121) +[index.ts:121](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L121) ___ @@ -335,7 +335,7 @@ ___ #### Defined in -[index.ts:94](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L94) +[index.ts:94](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L94) ___ @@ -352,7 +352,7 @@ ___ #### Defined in -[index.ts:134](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L134) +[index.ts:134](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L134) ___ @@ -369,7 +369,7 @@ ___ #### Defined in -[index.ts:156](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L156) +[index.ts:156](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L156) ___ @@ -386,7 +386,7 @@ ___ #### Defined in -[index.ts:108](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L108) +[index.ts:108](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L108) ___ @@ -402,7 +402,7 @@ ___ #### Defined in -[index.ts:132](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L132) +[index.ts:132](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L132) ___ @@ -435,7 +435,7 @@ ___ #### Defined in -[index.ts:28](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L28) +[index.ts:28](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L28) ## Variables @@ -445,7 +445,7 @@ ___ #### Defined in -[index.ts:722](https://github.com/stepci/garph/blob/3c68aab/src/index.ts#L722) +[index.ts:733](https://github.com/stepci/garph/blob/45f35d4/src/index.ts#L733) ## Functions @@ -468,7 +468,7 @@ ___ #### Defined in -[schema.ts:17](https://github.com/stepci/garph/blob/3c68aab/src/schema.ts#L17) +[schema.ts:17](https://github.com/stepci/garph/blob/45f35d4/src/schema.ts#L17) ___ @@ -489,4 +489,4 @@ ___ #### Defined in -[schema.ts:11](https://github.com/stepci/garph/blob/3c68aab/src/schema.ts#L11) +[schema.ts:11](https://github.com/stepci/garph/blob/45f35d4/src/schema.ts#L11) diff --git a/www/docs/guide/loaders.md b/www/docs/guide/loaders.md index 9083ae0..7f2eeed 100644 --- a/www/docs/guide/loaders.md +++ b/www/docs/guide/loaders.md @@ -57,7 +57,7 @@ const resolvers: resolverTypes = { }, Dog: { owner: { - load(queries) { + load (queries) { // Promise with timeout added to demonstrate caching return new Promise(resolve => { setTimeout(() => {