naystack 1.5.41 → 1.5.42
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/dist/graphql/index.cjs.js +1 -0
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.esm.js +1 -0
- package/dist/graphql/utils.cjs.js +1 -0
- package/dist/graphql/utils.d.mts +1 -1
- package/dist/graphql/utils.d.ts +1 -1
- package/dist/graphql/utils.esm.js +1 -0
- package/package.json +1 -1
|
@@ -880,6 +880,7 @@ function FieldLibrary(type, queries) {
|
|
|
880
880
|
if (!def) continue;
|
|
881
881
|
Object.defineProperty(GeneratedResolver.prototype, key, {
|
|
882
882
|
value: async function(root, ctx, input) {
|
|
883
|
+
if (root[key]) return root[key];
|
|
883
884
|
return def.fn(root, ctx, input);
|
|
884
885
|
},
|
|
885
886
|
writable: false
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { GQLError } from './errors.mjs';
|
|
2
2
|
export { initGraphQLServer } from './init.mjs';
|
|
3
3
|
export { AuthorizedContext, Context } from './types.mjs';
|
|
4
|
-
export { FieldLibrary, FieldResponseType, QueryLibrary, QueryResponseType, field, query } from './utils.mjs';
|
|
4
|
+
export { FieldLibrary, FieldResolverDefinition, FieldResponseType, QueryDefinition, QueryLibrary, QueryResponseType, field, query } from './utils.mjs';
|
|
5
5
|
import 'graphql/error';
|
|
6
6
|
import '@apollo/server';
|
|
7
7
|
import 'next/server';
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { GQLError } from './errors.js';
|
|
2
2
|
export { initGraphQLServer } from './init.js';
|
|
3
3
|
export { AuthorizedContext, Context } from './types.js';
|
|
4
|
-
export { FieldLibrary, FieldResponseType, QueryLibrary, QueryResponseType, field, query } from './utils.js';
|
|
4
|
+
export { FieldLibrary, FieldResolverDefinition, FieldResponseType, QueryDefinition, QueryLibrary, QueryResponseType, field, query } from './utils.js';
|
|
5
5
|
import 'graphql/error';
|
|
6
6
|
import '@apollo/server';
|
|
7
7
|
import 'next/server';
|
|
@@ -876,6 +876,7 @@ function FieldLibrary(type, queries) {
|
|
|
876
876
|
if (!def) continue;
|
|
877
877
|
Object.defineProperty(GeneratedResolver.prototype, key, {
|
|
878
878
|
value: async function(root, ctx, input) {
|
|
879
|
+
if (root[key]) return root[key];
|
|
879
880
|
return def.fn(root, ctx, input);
|
|
880
881
|
},
|
|
881
882
|
writable: false
|
|
@@ -237,6 +237,7 @@ function FieldLibrary(type, queries) {
|
|
|
237
237
|
if (!def) continue;
|
|
238
238
|
Object.defineProperty(GeneratedResolver.prototype, key, {
|
|
239
239
|
value: async function(root, ctx, input) {
|
|
240
|
+
if (root[key]) return root[key];
|
|
240
241
|
return def.fn(root, ctx, input);
|
|
241
242
|
},
|
|
242
243
|
writable: false
|
package/dist/graphql/utils.d.mts
CHANGED
|
@@ -264,4 +264,4 @@ type QueryResponseType<T extends QueryDefinition<any, any, any, any, any, any>>
|
|
|
264
264
|
*/
|
|
265
265
|
type FieldResponseType<T extends FieldResolverDefinition<any, any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
266
266
|
|
|
267
|
-
export { FieldLibrary, type FieldResponseType, QueryLibrary, type QueryResponseType, field, query };
|
|
267
|
+
export { FieldLibrary, type FieldResolverDefinition, type FieldResponseType, type QueryDefinition, QueryLibrary, type QueryResponseType, field, query };
|
package/dist/graphql/utils.d.ts
CHANGED
|
@@ -264,4 +264,4 @@ type QueryResponseType<T extends QueryDefinition<any, any, any, any, any, any>>
|
|
|
264
264
|
*/
|
|
265
265
|
type FieldResponseType<T extends FieldResolverDefinition<any, any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
266
266
|
|
|
267
|
-
export { FieldLibrary, type FieldResponseType, QueryLibrary, type QueryResponseType, field, query };
|
|
267
|
+
export { FieldLibrary, type FieldResolverDefinition, type FieldResponseType, type QueryDefinition, QueryLibrary, type QueryResponseType, field, query };
|
|
@@ -222,6 +222,7 @@ function FieldLibrary(type, queries) {
|
|
|
222
222
|
if (!def) continue;
|
|
223
223
|
Object.defineProperty(GeneratedResolver.prototype, key, {
|
|
224
224
|
value: async function(root, ctx, input) {
|
|
225
|
+
if (root[key]) return root[key];
|
|
225
226
|
return def.fn(root, ctx, input);
|
|
226
227
|
},
|
|
227
228
|
writable: false
|