@loopback/example-graphql 0.6.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/dist/application.d.ts +2 -2
- package/dist/application.js +2 -2
- package/dist/application.js.map +1 -1
- package/dist/datasources/index.js +2 -2
- package/dist/datasources/index.js.map +1 -1
- package/dist/datasources/recipes.datasource.js +4 -4
- package/dist/datasources/recipes.datasource.js.map +1 -1
- package/dist/graphql-resolvers/recipe-resolver.js +37 -37
- package/dist/graphql-resolvers/recipe-resolver.js.map +1 -1
- package/dist/graphql-types/recipe-input.js +8 -8
- package/dist/graphql-types/recipe-input.js.map +1 -1
- package/dist/graphql-types/recipe-type.js +27 -27
- package/dist/graphql-types/recipe-type.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/migrate.js +1 -1
- package/dist/migrate.js.map +1 -1
- package/dist/repositories/index.js +2 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/recipe.repository.js +6 -6
- package/dist/repositories/recipe.repository.js.map +1 -1
- package/dist/sample-recipes.js +1 -1
- package/dist/sample-recipes.js.map +1 -1
- package/dist/services/recipe.service.js +2 -2
- package/dist/services/recipe.service.js.map +1 -1
- package/package.json +17 -17
- package/src/application.ts +1 -1
- package/src/datasources/index.ts +1 -1
- package/src/datasources/recipes.datasource.ts +1 -1
- package/src/graphql-resolvers/recipe-resolver.ts +1 -1
- package/src/graphql-types/recipe-input.ts +1 -1
- package/src/graphql-types/recipe-type.ts +1 -1
- package/src/index.ts +1 -1
- package/src/migrate.ts +1 -1
- package/src/repositories/index.ts +1 -1
- package/src/repositories/recipe.repository.ts +1 -1
- package/src/sample-recipes.ts +1 -1
- package/src/services/recipe.service.ts +1 -1
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) IBM Corp. 2020.
|
|
1
|
+
Copyright (c) IBM Corp. and LoopBack contributors 2020.
|
|
2
2
|
Node module: @loopback/example-graphql
|
|
3
3
|
This project is licensed under the MIT License, full text below.
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ This project is licensed under the MIT License, full text below.
|
|
|
6
6
|
|
|
7
7
|
MIT License
|
|
8
8
|
|
|
9
|
-
MIT License Copyright (c) IBM Corp. 2020
|
|
9
|
+
MIT License Copyright (c) IBM Corp. and LoopBack contributors 2020
|
|
10
10
|
|
|
11
11
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
12
12
|
this software and associated documentation files (the "Software"), to deal in
|
package/dist/application.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare const GraphqlDemoApplication_base: (new (...args: any[]) => {
|
|
|
87
87
|
listeners: (event: string | symbol) => Function[];
|
|
88
88
|
rawListeners: (event: string | symbol) => Function[];
|
|
89
89
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
90
|
-
listenerCount: (
|
|
90
|
+
listenerCount: (event: string | symbol) => number;
|
|
91
91
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
92
92
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
93
93
|
eventNames: () => (string | symbol)[];
|
|
@@ -177,7 +177,7 @@ declare const GraphqlDemoApplication_base: (new (...args: any[]) => {
|
|
|
177
177
|
listeners: (event: string | symbol) => Function[];
|
|
178
178
|
rawListeners: (event: string | symbol) => Function[];
|
|
179
179
|
emit: (event: string | symbol, ...args: any[]) => boolean;
|
|
180
|
-
listenerCount: (
|
|
180
|
+
listenerCount: (event: string | symbol) => number;
|
|
181
181
|
prependListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
182
182
|
prependOnceListener: (event: string | symbol, listener: (...args: any[]) => void) => import("@loopback/core").Application;
|
|
183
183
|
eventNames: () => (string | symbol)[];
|
package/dist/application.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -10,7 +10,7 @@ const boot_1 = require("@loopback/boot");
|
|
|
10
10
|
const graphql_1 = require("@loopback/graphql");
|
|
11
11
|
const repository_1 = require("@loopback/repository");
|
|
12
12
|
const rest_1 = require("@loopback/rest");
|
|
13
|
-
const path_1 =
|
|
13
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
14
14
|
const sample_recipes_1 = require("./sample-recipes");
|
|
15
15
|
class GraphqlDemoApplication extends (0, boot_1.BootMixin)((0, repository_1.RepositoryMixin)(rest_1.RestApplication)) {
|
|
16
16
|
constructor(options = {}) {
|
package/dist/application.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAyC;AAEzC,+CAAoE;AACpE,qDAAqD;AACrD,yCAA+C;AAC/C,wDAAwB;AACxB,qDAA+C;AAI/C,MAAa,sBAAuB,SAAQ,IAAA,gBAAS,EACnD,IAAA,4BAAe,EAAC,sBAAe,CAAC,CACjC;IACC,YAAY,UAA6B,EAAE;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,SAAS,CAAC,0BAAgB,CAAC,CAAC;QAEjC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAe,CAAC,cAAc,CAAC,CAAC;QAC5D,2FAA2F;QAC3F,MAAM,CAAC,UAAU,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE;YACvC,sEAAsE;YACtE,OAAO,IAAI,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,CAAC,4BAA4B,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;QAExE,uDAAuD;QACvD,IAAI,CAAC,IAAI,CAAC,yBAAe,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE;YAC/D,OAAO,EAAC,GAAG,OAAO,EAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,8BAAa,CAAC,CAAC,CAAC;QAE5C,2BAA2B;QAC3B,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;QAEpD,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;QAC7B,mDAAmD;QACnD,IAAI,CAAC,WAAW,GAAG;YACjB,gBAAgB,EAAE;gBAChB,8CAA8C;gBAC9C,IAAI,EAAE,CAAC,mBAAmB,CAAC;gBAC3B,UAAU,EAAE,CAAC,KAAK,CAAC;gBACnB,MAAM,EAAE,IAAI;aACb;SACF,CAAC;IACJ,CAAC;CACF;AAtCD,wDAsCC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./recipes.datasource"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasources/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+DAAqC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -25,15 +25,15 @@ let RecipesDataSource = class RecipesDataSource extends repository_1.juggler.Dat
|
|
|
25
25
|
};
|
|
26
26
|
RecipesDataSource.dataSourceName = 'recipes';
|
|
27
27
|
RecipesDataSource.defaultConfig = config;
|
|
28
|
-
RecipesDataSource =
|
|
28
|
+
RecipesDataSource = tslib_1.__decorate([
|
|
29
29
|
(0, core_1.lifeCycleObserver)('datasource', {
|
|
30
30
|
tags: {
|
|
31
31
|
[core_1.ContextTags.NAME]: 'recipes',
|
|
32
32
|
[core_1.ContextTags.NAMESPACE]: repository_1.RepositoryBindings.DATASOURCES,
|
|
33
33
|
},
|
|
34
34
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.config.recipes', { optional: true })),
|
|
36
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
37
37
|
], RecipesDataSource);
|
|
38
38
|
exports.RecipesDataSource = RecipesDataSource;
|
|
39
39
|
//# sourceMappingURL=recipes.datasource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.datasource.js","sourceRoot":"","sources":["../../src/datasources/recipes.datasource.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipes.datasource.js","sourceRoot":"","sources":["../../src/datasources/recipes.datasource.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAKwB;AACxB,qDAAiE;AAEjE,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,QAAQ;IACnB,YAAY,EAAE,EAAE;IAChB,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,qEAAqE;AACrE,sEAAsE;AACtE,0EAA0E;AAC1E,+DAA+D;AAO/D,IAAa,iBAAiB,GAA9B,MAAa,iBACX,SAAQ,oBAAO,CAAC,UAAU;IAM1B,YAEE,WAAmB,MAAM;QAEzB,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;CACF,CAAA;AATQ,gCAAc,GAAG,SAAS,CAAC;AAClB,+BAAa,GAAG,MAAO,CAAA;AAL5B,iBAAiB;IAN7B,IAAA,wBAAiB,EAAC,YAAY,EAAE;QAC/B,IAAI,EAAE;YACJ,CAAC,kBAAW,CAAC,IAAI,CAAC,EAAE,SAAS;YAC7B,CAAC,kBAAW,CAAC,SAAS,CAAC,EAAE,+BAAkB,CAAC,WAAW;SACxD;KACF,CAAC;IASG,mBAAA,IAAA,aAAM,EAAC,4BAA4B,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAA;;GAR9C,iBAAiB,CAa7B;AAbY,8CAAiB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -45,56 +45,56 @@ let RecipeResolver = class RecipeResolver {
|
|
|
45
45
|
return this.recipeService.ratingsCount(recipe, minRate);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
tslib_1.__decorate([
|
|
49
49
|
(0, graphql_1.query)(returns => recipe_type_1.Recipe, { nullable: true }),
|
|
50
50
|
(0, graphql_1.authorized)('owner'),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
tslib_1.__param(0, (0, graphql_1.arg)('recipeId')),
|
|
52
|
+
tslib_1.__metadata("design:type", Function),
|
|
53
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
|
54
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
55
55
|
], RecipeResolver.prototype, "recipe", null);
|
|
56
|
-
|
|
56
|
+
tslib_1.__decorate([
|
|
57
57
|
(0, graphql_1.query)(returns => [recipe_type_1.Recipe]),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
tslib_1.__metadata("design:type", Function),
|
|
59
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
60
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
61
61
|
], RecipeResolver.prototype, "recipes", null);
|
|
62
|
-
|
|
62
|
+
tslib_1.__decorate([
|
|
63
63
|
(0, graphql_1.mutation)(returns => recipe_type_1.Recipe),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
tslib_1.__param(0, (0, graphql_1.arg)('recipe')),
|
|
65
|
+
tslib_1.__param(1, (0, graphql_1.pubSub)('recipeCreated')),
|
|
66
|
+
tslib_1.__metadata("design:type", Function),
|
|
67
|
+
tslib_1.__metadata("design:paramtypes", [recipe_input_1.RecipeInput, Function]),
|
|
68
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
69
69
|
], RecipeResolver.prototype, "addRecipe", null);
|
|
70
|
-
|
|
70
|
+
tslib_1.__decorate([
|
|
71
71
|
(0, graphql_1.subscription)(returns => recipe_type_1.Recipe, { topics: 'recipeCreated' }),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
tslib_1.__param(0, (0, graphql_1.root)()),
|
|
73
|
+
tslib_1.__metadata("design:type", Function),
|
|
74
|
+
tslib_1.__metadata("design:paramtypes", [recipe_type_1.Recipe]),
|
|
75
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
76
76
|
], RecipeResolver.prototype, "recipeCreated", null);
|
|
77
|
-
|
|
77
|
+
tslib_1.__decorate([
|
|
78
78
|
(0, graphql_1.fieldResolver)(),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
tslib_1.__param(0, (0, graphql_1.root)()),
|
|
80
|
+
tslib_1.__metadata("design:type", Function),
|
|
81
|
+
tslib_1.__metadata("design:paramtypes", [recipe_type_1.Recipe]),
|
|
82
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
83
83
|
], RecipeResolver.prototype, "numberInCollection", null);
|
|
84
|
-
|
|
84
|
+
tslib_1.__decorate([
|
|
85
85
|
(0, graphql_1.fieldResolver)(),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
tslib_1.__param(0, (0, graphql_1.root)()),
|
|
87
|
+
tslib_1.__param(1, (0, graphql_1.arg)('minRate', type => graphql_1.Int, { defaultValue: 0.0 })),
|
|
88
|
+
tslib_1.__metadata("design:type", Function),
|
|
89
|
+
tslib_1.__metadata("design:paramtypes", [recipe_type_1.Recipe, Number]),
|
|
90
|
+
tslib_1.__metadata("design:returntype", Number)
|
|
91
91
|
], RecipeResolver.prototype, "ratingsCount", null);
|
|
92
|
-
RecipeResolver =
|
|
92
|
+
RecipeResolver = tslib_1.__decorate([
|
|
93
93
|
(0, graphql_1.resolver)(of => recipe_type_1.Recipe),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
tslib_1.__param(0, (0, repository_1.repository)('RecipeRepository')),
|
|
95
|
+
tslib_1.__param(1, (0, core_1.service)(recipe_service_1.RecipeService)),
|
|
96
|
+
tslib_1.__param(2, (0, core_1.inject)(graphql_1.GraphQLBindings.RESOLVER_DATA)),
|
|
97
|
+
tslib_1.__metadata("design:paramtypes", [repositories_1.RecipeRepository,
|
|
98
98
|
recipe_service_1.RecipeService, Object])
|
|
99
99
|
], RecipeResolver);
|
|
100
100
|
exports.RecipeResolver = RecipeResolver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-resolver.js","sourceRoot":"","sources":["../../src/graphql-resolvers/recipe-resolver.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipe-resolver.js","sourceRoot":"","sources":["../../src/graphql-resolvers/recipe-resolver.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAA+C;AAC/C,+CAe2B;AAC3B,qDAAgD;AAChD,gEAA0D;AAC1D,8DAAoD;AACpD,kDAAiD;AACjD,+DAAyD;AAGzD,IAAa,cAAc,GAA3B,MAAa,cAAc;IACzB;IACE,mCAAmC;IAElB,UAA4B,EACJ,aAA4B;IACrE,4CAA4C;IACG,YAA0B;QAHxD,eAAU,GAAV,UAAU,CAAkB;QACJ,kBAAa,GAAb,aAAa,CAAe;QAEtB,iBAAY,GAAZ,YAAY,CAAc;IACxE,CAAC;IAIJ,KAAK,CAAC,MAAM,CAAkB,QAAgB;QAC5C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAGD,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC;IAGD,KAAK,CAAC,SAAS,CACE,MAAmB,EACT,OAA0B;QAEnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,G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9C;AAGD;IADC,IAAA,uBAAa,GAAE;IAEb,mBAAA,IAAA,cAAI,GAAE,CAAA;IACN,mBAAA,IAAA,aAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,aAAG,EAAE,EAAC,YAAY,EAAE,GAAG,EAAC,CAAC,CAAA;;6CADjC,oBAAM;;kDAKvB;AAjDU,cAAc;IAD1B,IAAA,kBAAQ,EAAC,EAAE,CAAC,EAAE,CAAC,oBAAM,CAAC;IAIlB,mBAAA,IAAA,uBAAU,EAAC,kBAAkB,CAAC,CAAA;IAE9B,mBAAA,IAAA,cAAO,EAAC,8BAAa,CAAC,CAAA;IAEtB,mBAAA,IAAA,aAAM,EAAC,yBAAe,CAAC,aAAa,CAAC,CAAA;6CAHT,+BAAgB;QACW,8BAAa;GAL5D,cAAc,CAkD1B;AAlDY,wCAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -9,19 +9,19 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const graphql_1 = require("@loopback/graphql");
|
|
10
10
|
let RecipeInput = class RecipeInput {
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
tslib_1.__decorate([
|
|
13
13
|
(0, graphql_1.field)(),
|
|
14
|
-
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
15
|
], RecipeInput.prototype, "title", void 0);
|
|
16
|
-
|
|
16
|
+
tslib_1.__decorate([
|
|
17
17
|
(0, graphql_1.field)({ nullable: true }),
|
|
18
|
-
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
19
|
], RecipeInput.prototype, "description", void 0);
|
|
20
|
-
|
|
20
|
+
tslib_1.__decorate([
|
|
21
21
|
(0, graphql_1.field)(type => [String]),
|
|
22
|
-
|
|
22
|
+
tslib_1.__metadata("design:type", Array)
|
|
23
23
|
], RecipeInput.prototype, "ingredients", void 0);
|
|
24
|
-
RecipeInput =
|
|
24
|
+
RecipeInput = tslib_1.__decorate([
|
|
25
25
|
(0, graphql_1.inputType)()
|
|
26
26
|
], RecipeInput);
|
|
27
27
|
exports.RecipeInput = RecipeInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-input.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-input.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipe-input.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-input.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,+CAAmD;AAInD,IAAa,WAAW,GAAxB,MAAa,WAAW;CASvB,CAAA;AAPC;IADC,IAAA,eAAK,GAAE;;0CACM;AAGd;IADC,IAAA,eAAK,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;gDACH;AAGrB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;gDACF;AARX,WAAW;IADvB,IAAA,mBAAS,GAAE;GACC,WAAW,CASvB;AATY,kCAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -24,64 +24,64 @@ let Recipe = class Recipe extends repository_1.Entity {
|
|
|
24
24
|
return ratingsSum / ratingsCount;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
tslib_1.__decorate([
|
|
28
28
|
(0, graphql_1.field)(type => graphql_1.ID),
|
|
29
29
|
(0, repository_1.property)({ id: true }),
|
|
30
|
-
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
31
|
], Recipe.prototype, "id", void 0);
|
|
32
|
-
|
|
32
|
+
tslib_1.__decorate([
|
|
33
33
|
(0, graphql_1.field)(),
|
|
34
34
|
(0, repository_1.property)(),
|
|
35
|
-
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
36
|
], Recipe.prototype, "title", void 0);
|
|
37
|
-
|
|
37
|
+
tslib_1.__decorate([
|
|
38
38
|
(0, graphql_1.field)(type => String, {
|
|
39
39
|
nullable: true,
|
|
40
40
|
deprecationReason: 'Use `description` field instead',
|
|
41
41
|
}),
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
tslib_1.__metadata("design:type", Object),
|
|
43
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
44
44
|
], Recipe.prototype, "specification", null);
|
|
45
|
-
|
|
45
|
+
tslib_1.__decorate([
|
|
46
46
|
(0, graphql_1.field)({
|
|
47
47
|
nullable: true,
|
|
48
48
|
description: 'The recipe description with preparation info',
|
|
49
49
|
}),
|
|
50
50
|
(0, repository_1.property)(),
|
|
51
|
-
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
52
52
|
], Recipe.prototype, "description", void 0);
|
|
53
|
-
|
|
53
|
+
tslib_1.__decorate([
|
|
54
54
|
(0, graphql_1.field)(type => [graphql_1.Int]),
|
|
55
|
-
|
|
55
|
+
tslib_1.__metadata("design:type", Array)
|
|
56
56
|
], Recipe.prototype, "ratings", void 0);
|
|
57
|
-
|
|
57
|
+
tslib_1.__decorate([
|
|
58
58
|
(0, graphql_1.field)(),
|
|
59
59
|
(0, repository_1.property)(),
|
|
60
|
-
|
|
60
|
+
tslib_1.__metadata("design:type", Date)
|
|
61
61
|
], Recipe.prototype, "creationDate", void 0);
|
|
62
|
-
|
|
62
|
+
tslib_1.__decorate([
|
|
63
63
|
(0, graphql_1.field)(type => graphql_1.Int),
|
|
64
|
-
|
|
64
|
+
tslib_1.__metadata("design:type", Number)
|
|
65
65
|
], Recipe.prototype, "numberInCollection", void 0);
|
|
66
|
-
|
|
66
|
+
tslib_1.__decorate([
|
|
67
67
|
(0, graphql_1.field)(type => graphql_1.Int),
|
|
68
|
-
|
|
68
|
+
tslib_1.__metadata("design:type", Number)
|
|
69
69
|
], Recipe.prototype, "ratingsCount", void 0);
|
|
70
|
-
|
|
70
|
+
tslib_1.__decorate([
|
|
71
71
|
(0, graphql_1.field)(type => [String]),
|
|
72
|
-
|
|
72
|
+
tslib_1.__metadata("design:type", Array)
|
|
73
73
|
], Recipe.prototype, "ingredients", void 0);
|
|
74
|
-
|
|
74
|
+
tslib_1.__decorate([
|
|
75
75
|
(0, graphql_1.field)(type => graphql_1.Int),
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
tslib_1.__metadata("design:type", Number),
|
|
77
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
78
78
|
], Recipe.prototype, "ingredientsLength", null);
|
|
79
|
-
|
|
79
|
+
tslib_1.__decorate([
|
|
80
80
|
(0, graphql_1.field)(type => graphql_1.Float, { nullable: true }),
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
tslib_1.__metadata("design:type", Object),
|
|
82
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
83
83
|
], Recipe.prototype, "averageRating", null);
|
|
84
|
-
Recipe =
|
|
84
|
+
Recipe = tslib_1.__decorate([
|
|
85
85
|
(0, graphql_1.objectType)({ description: 'Object representing cooking recipe' }),
|
|
86
86
|
(0, repository_1.model)({ settings: { strict: false } })
|
|
87
87
|
], Recipe);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-type.js","sourceRoot":"","sources":["../../src/graphql-types/recipe-type.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipe-type.js","sourceR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;uCACH;AAIlB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,qBAAQ,GAAE;sCACG,IAAI;4CAAC;AAGnB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;kDACkB;AAGrC;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;4CACE;AAGrB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;2CACF;AAGtB;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,aAAG,CAAC;;;+CAGlB;AAGD;IADC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,eAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;;2CAQtC;AArDU,MAAM;IAFlB,IAAA,oBAAU,EAAC,EAAC,WAAW,EAAE,oCAAoC,EAAC,CAAC;IAC/D,IAAA,kBAAK,EAAC,EAAC,QAAQ,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC,EAAC,CAAC;GACtB,MAAM,CAsDlB;AAtDY,wBAAM"}
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,12 @@ var _a;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.main = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
6
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
7
7
|
// Node module: @loopback/example-graphql
|
|
8
8
|
// This file is licensed under the MIT License.
|
|
9
9
|
// License text available at https://opensource.org/licenses/MIT
|
|
10
10
|
const application_1 = require("./application");
|
|
11
|
-
|
|
11
|
+
tslib_1.__exportStar(require("./application"), exports);
|
|
12
12
|
async function main(options = {}) {
|
|
13
13
|
const app = new application_1.GraphqlDemoApplication(options);
|
|
14
14
|
await app.boot();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AACA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;AAChE,+CAAwE;AAExE,wDAA8B;AAEvB,KAAK,UAAU,IAAI,CAAC,UAA6B,EAAE;IACxD,MAAM,GAAG,GAAG,IAAI,oCAAsB,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACjB,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;IAElB,MAAM,GAAG,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,EAAE,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC,CAAC;IAElC,OAAO,GAAG,CAAC;AACb,CAAC;AAVD,oBAUC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,MAAM,UAAU,GAAyB;QACvC,MAAM,EAAE;YACN,aAAa,EAAE,gBAAgB;SAChC;QACD,gBAAgB,EAAE,IAAI;KACvB,CAAC;IACF,sBAAsB;IACtB,MAAM,MAAM,GAAG;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,mCAAI,IAAI,CAAC;YACjC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI;YACtB,qEAAqE;YACrE,mEAAmE;YACnE,sEAAsE;YACtE,mCAAmC;YACnC,8CAA8C;YAC9C,mBAAmB,EAAE,IAAI;YACzB,WAAW,EAAE;gBACX,sEAAsE;gBACtE,qBAAqB,EAAE,IAAI;aAC5B;SACF;QACD,OAAO,EAAE,UAAU;KACpB,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACvB,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,GAAG,CAAC,CAAC;QACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;CACJ"}
|
package/dist/migrate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/dist/migrate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,+CAAqD;AAE9C,KAAK,UAAU,OAAO,CAAC,IAAc;IAC1C,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IACrE,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,cAAc,CAAC,CAAC;IAEtE,MAAM,GAAG,GAAG,IAAI,oCAAsB,EAAE,CAAC;IACzC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACjB,MAAM,GAAG,CAAC,aAAa,CAAC,EAAC,cAAc,EAAC,CAAC,CAAC;IAE1C,wDAAwD;IACxD,8DAA8D;IAC9D,8BAA8B;IAC9B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAZD,0BAYC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QAChC,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC;QACrD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;CACJ"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
|
-
|
|
8
|
+
tslib_1.__exportStar(require("./recipe.repository"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,8DAAoC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -51,18 +51,18 @@ let RecipeRepository = RecipeRepository_1 = class RecipeRepository extends repos
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
RecipeRepository.idCounter = 0;
|
|
54
|
-
|
|
54
|
+
tslib_1.__decorate([
|
|
55
55
|
(0, core_1.inject)('recipes'),
|
|
56
|
-
|
|
56
|
+
tslib_1.__metadata("design:type", Array)
|
|
57
57
|
], RecipeRepository.prototype, "sampleRecipes", void 0);
|
|
58
|
-
RecipeRepository = RecipeRepository_1 =
|
|
58
|
+
RecipeRepository = RecipeRepository_1 = tslib_1.__decorate([
|
|
59
59
|
(0, core_1.injectable)({
|
|
60
60
|
scope: core_1.BindingScope.SINGLETON,
|
|
61
61
|
tags: { [core_1.ContextTags.NAMESPACE]: repository_1.RepositoryBindings.REPOSITORIES },
|
|
62
62
|
}),
|
|
63
63
|
(0, core_1.lifeCycleObserver)('repository'),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
tslib_1.__param(0, (0, core_1.inject)('datasources.recipes')),
|
|
65
|
+
tslib_1.__metadata("design:paramtypes", [recipes_datasource_1.RecipesDataSource])
|
|
66
66
|
], RecipeRepository);
|
|
67
67
|
exports.RecipeRepository = RecipeRepository;
|
|
68
68
|
//# sourceMappingURL=recipe.repository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.repository.js","sourceRoot":"","sources":["../../src/repositories/recipe.repository.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipe.repository.js","sourceRoot":"","sources":["../../src/repositories/recipe.repository.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;;AAEhE,yCAOwB;AACxB,qDAA+E;AAC/E,yDAA+C;AAC/C,0EAAoE;AAEpE,8DAAoD;AAOpD,IAAa,gBAAgB,wBAA7B,MAAa,gBACX,SAAQ,kCAA6D;IAQrE,YAA2C,UAA6B;QACtE,KAAK,CAAC,oBAAM,EAAE,UAAU,CAAC,CAA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,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,CAAC;CACF,CAAA;AAjDgB,0BAAS,GAAG,CAAE,CAAA;AAG7B;IADC,IAAA,aAAM,EAAC,SAAS,CAAC;;uDACc;AAPrB,gBAAgB;IAL5B,IAAA,iBAAU,EAAC;QACV,KAAK,EAAE,mBAAY,CAAC,SAAS;QAC7B,IAAI,EAAE,EAAC,CAAC,kBAAW,CAAC,SAAS,CAAC,EAAE,+BAAkB,CAAC,YAAY,EAAC;KACjE,CAAC;IACD,IAAA,wBAAiB,EAAC,YAAY,CAAC;IAUjB,mBAAA,IAAA,aAAM,EAAC,qBAAqB,CAAC,CAAA;6CAAa,sCAAiB;GAT7D,gBAAgB,CAqD5B;AArDY,4CAAgB"}
|
package/dist/sample-recipes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample-recipes.js","sourceRoot":"","sources":["../src/sample-recipes.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"sample-recipes.js","sourceRoot":"","sources":["../src/sample-recipes.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;AAEhE,yDAA+C;AAC/C,6DAAmD;AAEtC,QAAA,aAAa,GAAG;IAC3B,YAAY,CAAC;QACX,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAClB,YAAY,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KACrC,CAAC;IACF,YAAY,CAAC;QACX,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACrB,YAAY,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KACrC,CAAC;IACF,YAAY,CAAC;QACX,EAAE,EAAE,GAAG;QACP,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACf,YAAY,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;KACrC,CAAC;CACH,CAAC;AAEF,SAAS,YAAY,CAAC,UAA2B;IAC/C,OAAO,IAAA,gCAAY,EAAC,oBAAM,EAAE,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -13,7 +13,7 @@ let RecipeService = RecipeService_1 = class RecipeService {
|
|
|
13
13
|
return recipe.ratings.filter(rating => rating >= minRate).length;
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
RecipeService = RecipeService_1 =
|
|
16
|
+
RecipeService = RecipeService_1 = tslib_1.__decorate([
|
|
17
17
|
(0, core_1.injectable)((0, core_1.asService)(RecipeService_1))
|
|
18
18
|
], RecipeService);
|
|
19
19
|
exports.RecipeService = RecipeService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.service.js","sourceRoot":"","sources":["../../src/services/recipe.service.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"recipe.service.js","sourceRoot":"","sources":["../../src/services/recipe.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,yCAAyC;AACzC,+CAA+C;AAC/C,gEAAgE;;;;;AAEhE,yCAAqD;AAIrD,IAAa,aAAa,qBAA1B,MAAa,aAAa;IACxB,YAAY,CAAC,MAAc,EAAE,OAAe;QAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC;IACnE,CAAC;CACF,CAAA;AAJY,aAAa;IADzB,IAAA,iBAAU,EAAC,IAAA,gBAAS,EAAC,eAAa,CAAC,CAAC;GACxB,aAAa,CAIzB;AAJY,sCAAa"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-graphql",
|
|
3
3
|
"description": "GraphQL Example Application",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback-application",
|
|
7
7
|
"loopback"
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"author": "IBM Corp.",
|
|
13
|
-
"copyright.owner": "IBM Corp.",
|
|
12
|
+
"author": "IBM Corp. and LoopBack contributors",
|
|
13
|
+
"copyright.owner": "IBM Corp. and LoopBack contributors",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "https://github.com/loopbackio/loopback-next.git",
|
|
17
17
|
"directory": "examples/graphql"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "
|
|
20
|
+
"node": "14 || 16 || 17 || 18"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"",
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
"!*/__tests__"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@loopback/boot": "^
|
|
53
|
-
"@loopback/core": "^
|
|
54
|
-
"@loopback/graphql": "^0.
|
|
55
|
-
"@loopback/repository": "^
|
|
56
|
-
"@loopback/rest": "^
|
|
52
|
+
"@loopback/boot": "^5.0.1",
|
|
53
|
+
"@loopback/core": "^4.0.1",
|
|
54
|
+
"@loopback/graphql": "^0.8.1",
|
|
55
|
+
"@loopback/repository": "^5.0.1",
|
|
56
|
+
"@loopback/rest": "^12.0.1",
|
|
57
57
|
"class-transformer": "^0.5.1",
|
|
58
|
-
"tslib": "^2.
|
|
58
|
+
"tslib": "^2.4.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@loopback/build": "^
|
|
62
|
-
"@loopback/eslint-config": "^
|
|
63
|
-
"@loopback/testlab": "^
|
|
61
|
+
"@loopback/build": "^9.0.1",
|
|
62
|
+
"@loopback/eslint-config": "^13.0.1",
|
|
63
|
+
"@loopback/testlab": "^5.0.1",
|
|
64
64
|
"@types/multer": "^1.4.7",
|
|
65
|
-
"@types/node": "^
|
|
66
|
-
"eslint": "^8.
|
|
65
|
+
"@types/node": "^14.18.21",
|
|
66
|
+
"eslint": "^8.17.0",
|
|
67
67
|
"rimraf": "^3.0.2",
|
|
68
68
|
"source-map-support": "^0.5.21",
|
|
69
|
-
"typescript": "~4.
|
|
69
|
+
"typescript": "~4.7.3"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "ccf7863d0639de966d6c6129b4aa94ba1dce2c33"
|
|
72
72
|
}
|
package/src/application.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/datasources/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {GraphQLServerOptions} from '@loopback/graphql';
|
|
2
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
2
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
3
3
|
// Node module: @loopback/example-graphql
|
|
4
4
|
// This file is licensed under the MIT License.
|
|
5
5
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/migrate.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
package/src/sample-recipes.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright IBM Corp. 2020. All Rights Reserved.
|
|
1
|
+
// Copyright IBM Corp. and LoopBack contributors 2020. All Rights Reserved.
|
|
2
2
|
// Node module: @loopback/example-graphql
|
|
3
3
|
// This file is licensed under the MIT License.
|
|
4
4
|
// License text available at https://opensource.org/licenses/MIT
|