@nestjs/apollo 13.4.0 → 13.4.2
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/drivers/apollo-base.driver.js +1 -1
- package/dist/drivers/apollo-gateway.driver.d.ts +1 -0
- package/dist/drivers/apollo-gateway.driver.d.ts.map +1 -1
- package/dist/drivers/apollo-gateway.driver.js +38 -2
- package/dist/interfaces/apollo-driver-config.interface.d.ts +14 -0
- package/dist/interfaces/apollo-driver-config.interface.d.ts.map +1 -1
- package/dist/interfaces/apollo-gateway-driver-config.interface.d.ts +13 -0
- package/dist/interfaces/apollo-gateway-driver-config.interface.d.ts.map +1 -1
- package/dist/tests/lib/constants/apollo.constants.d.ts +2 -0
- package/dist/tests/lib/constants/apollo.constants.d.ts.map +1 -0
- package/dist/tests/lib/constants/apollo.constants.js +4 -0
- package/dist/tests/lib/constants/index.d.ts +2 -0
- package/dist/tests/lib/constants/index.d.ts.map +1 -0
- package/dist/tests/lib/constants/index.js +4 -0
- package/dist/tests/lib/decorators/index.d.ts +2 -0
- package/dist/tests/lib/decorators/index.d.ts.map +1 -0
- package/dist/tests/lib/decorators/index.js +4 -0
- package/dist/tests/lib/decorators/plugin.decorator.d.ts +7 -0
- package/dist/tests/lib/decorators/plugin.decorator.d.ts.map +1 -0
- package/dist/tests/lib/decorators/plugin.decorator.js +15 -0
- package/dist/tests/lib/drivers/apollo-base.driver.d.ts +23 -0
- package/dist/tests/lib/drivers/apollo-base.driver.d.ts.map +1 -0
- package/dist/tests/lib/drivers/apollo-base.driver.js +262 -0
- package/dist/tests/lib/drivers/apollo-federation.driver.d.ts +17 -0
- package/dist/tests/lib/drivers/apollo-federation.driver.d.ts.map +1 -0
- package/dist/tests/lib/drivers/apollo-federation.driver.js +46 -0
- package/dist/tests/lib/drivers/apollo-gateway.driver.d.ts +15 -0
- package/dist/tests/lib/drivers/apollo-gateway.driver.d.ts.map +1 -0
- package/dist/tests/lib/drivers/apollo-gateway.driver.js +80 -0
- package/dist/tests/lib/drivers/apollo.driver.d.ts +15 -0
- package/dist/tests/lib/drivers/apollo.driver.d.ts.map +1 -0
- package/dist/tests/lib/drivers/apollo.driver.js +57 -0
- package/dist/tests/lib/drivers/index.d.ts +4 -0
- package/dist/tests/lib/drivers/index.d.ts.map +1 -0
- package/dist/tests/lib/drivers/index.js +6 -0
- package/dist/tests/lib/errors/authentication.error.d.ts +14 -0
- package/dist/tests/lib/errors/authentication.error.d.ts.map +1 -0
- package/dist/tests/lib/errors/authentication.error.js +25 -0
- package/dist/tests/lib/errors/forbidden.error.d.ts +14 -0
- package/dist/tests/lib/errors/forbidden.error.d.ts.map +1 -0
- package/dist/tests/lib/errors/forbidden.error.js +25 -0
- package/dist/tests/lib/errors/index.d.ts +5 -0
- package/dist/tests/lib/errors/index.d.ts.map +1 -0
- package/dist/tests/lib/errors/index.js +7 -0
- package/dist/tests/lib/errors/user-input.error.d.ts +14 -0
- package/dist/tests/lib/errors/user-input.error.d.ts.map +1 -0
- package/dist/tests/lib/errors/user-input.error.js +26 -0
- package/dist/tests/lib/errors/validation.error.d.ts +14 -0
- package/dist/tests/lib/errors/validation.error.d.ts.map +1 -0
- package/dist/tests/lib/errors/validation.error.js +26 -0
- package/dist/tests/lib/graphiql/graphiql-html.factory.d.ts +5 -0
- package/dist/tests/lib/graphiql/graphiql-html.factory.d.ts.map +1 -0
- package/dist/tests/lib/graphiql/graphiql-html.factory.js +69 -0
- package/dist/tests/lib/graphiql/graphiql-playground.plugin.d.ts +13 -0
- package/dist/tests/lib/graphiql/graphiql-playground.plugin.d.ts.map +1 -0
- package/dist/tests/lib/graphiql/graphiql-playground.plugin.js +19 -0
- package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.d.ts +33 -0
- package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.d.ts.map +1 -0
- package/dist/tests/lib/graphiql/interfaces/graphiql-options.interface.js +2 -0
- package/dist/tests/lib/index.d.ts +7 -0
- package/dist/tests/lib/index.d.ts.map +1 -0
- package/dist/tests/lib/index.js +9 -0
- package/dist/tests/lib/interfaces/apollo-driver-config.interface.d.ts +44 -0
- package/dist/tests/lib/interfaces/apollo-driver-config.interface.d.ts.map +1 -0
- package/dist/tests/lib/interfaces/apollo-driver-config.interface.js +2 -0
- package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.d.ts +5 -0
- package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.d.ts.map +1 -0
- package/dist/tests/lib/interfaces/apollo-federation-driver-config.interface.js +2 -0
- package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.d.ts +37 -0
- package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.d.ts.map +1 -0
- package/dist/tests/lib/interfaces/apollo-gateway-driver-config.interface.js +2 -0
- package/dist/tests/lib/interfaces/index.d.ts +4 -0
- package/dist/tests/lib/interfaces/index.d.ts.map +1 -0
- package/dist/tests/lib/interfaces/index.js +6 -0
- package/dist/tests/lib/services/index.d.ts +2 -0
- package/dist/tests/lib/services/index.d.ts.map +1 -0
- package/dist/tests/lib/services/index.js +4 -0
- package/dist/tests/lib/services/plugins-explorer.service.d.ts +10 -0
- package/dist/tests/lib/services/plugins-explorer.service.d.ts.map +1 -0
- package/dist/tests/lib/services/plugins-explorer.service.js +24 -0
- package/dist/tests/lib/utils/async-iterator.util.d.ts +9 -0
- package/dist/tests/lib/utils/async-iterator.util.d.ts.map +1 -0
- package/dist/tests/lib/utils/async-iterator.util.js +60 -0
- package/dist/tests/lib/utils/get-apollo-server.d.ts +11 -0
- package/dist/tests/lib/utils/get-apollo-server.d.ts.map +1 -0
- package/dist/tests/lib/utils/get-apollo-server.js +20 -0
- package/dist/tests/lib/utils/index.d.ts +2 -0
- package/dist/tests/lib/utils/index.d.ts.map +1 -0
- package/dist/tests/lib/utils/index.js +4 -0
- package/dist/tests/tests/code-first/app.module.d.ts +3 -0
- package/dist/tests/tests/code-first/app.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first/app.module.js +26 -0
- package/dist/tests/tests/code-first/cats/cats.module.d.ts +23 -0
- package/dist/tests/tests/code-first/cats/cats.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first/cats/cats.module.js +50 -0
- package/dist/tests/tests/code-first/cats/cats.resolver.d.ts +4 -0
- package/dist/tests/tests/code-first/cats/cats.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/cats/cats.resolver.js +20 -0
- package/dist/tests/tests/code-first/common/filters/unauthorized.filter.d.ts +6 -0
- package/dist/tests/tests/code-first/common/filters/unauthorized.filter.d.ts.map +1 -0
- package/dist/tests/tests/code-first/common/filters/unauthorized.filter.js +15 -0
- package/dist/tests/tests/code-first/common/guards/auth.guard.d.ts +5 -0
- package/dist/tests/tests/code-first/common/guards/auth.guard.d.ts.map +1 -0
- package/dist/tests/tests/code-first/common/guards/auth.guard.js +19 -0
- package/dist/tests/tests/code-first/common/scalars/date.scalar.d.ts +8 -0
- package/dist/tests/tests/code-first/common/scalars/date.scalar.d.ts.map +1 -0
- package/dist/tests/tests/code-first/common/scalars/date.scalar.js +27 -0
- package/dist/tests/tests/code-first/directions/directions.module.d.ts +3 -0
- package/dist/tests/tests/code-first/directions/directions.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first/directions/directions.module.js +14 -0
- package/dist/tests/tests/code-first/directions/directions.resolver.d.ts +5 -0
- package/dist/tests/tests/code-first/directions/directions.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/directions/directions.resolver.js +22 -0
- package/dist/tests/tests/code-first/enums/direction.enum.d.ts +8 -0
- package/dist/tests/tests/code-first/enums/direction.enum.d.ts.map +1 -0
- package/dist/tests/tests/code-first/enums/direction.enum.js +24 -0
- package/dist/tests/tests/code-first/enums/sample-orphaned.enum.d.ts +7 -0
- package/dist/tests/tests/code-first/enums/sample-orphaned.enum.d.ts.map +1 -0
- package/dist/tests/tests/code-first/enums/sample-orphaned.enum.js +15 -0
- package/dist/tests/tests/code-first/main.d.ts +2 -0
- package/dist/tests/tests/code-first/main.d.ts.map +1 -0
- package/dist/tests/tests/code-first/main.js +11 -0
- package/dist/tests/tests/code-first/other/abstract.resolver.d.ts +6 -0
- package/dist/tests/tests/code-first/other/abstract.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/other/abstract.resolver.js +23 -0
- package/dist/tests/tests/code-first/other/sample-orphaned.type.d.ts +8 -0
- package/dist/tests/tests/code-first/other/sample-orphaned.type.d.ts.map +1 -0
- package/dist/tests/tests/code-first/other/sample-orphaned.type.js +35 -0
- package/dist/tests/tests/code-first/other/sample-scalar.d.ts +8 -0
- package/dist/tests/tests/code-first/other/sample-scalar.d.ts.map +1 -0
- package/dist/tests/tests/code-first/other/sample-scalar.js +33 -0
- package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.d.ts +5 -0
- package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/dto/filter-recipes-count.args.js +19 -0
- package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.d.ts +7 -0
- package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/dto/new-recipe.input.js +32 -0
- package/dist/tests/tests/code-first/recipes/dto/recipes.args.d.ts +5 -0
- package/dist/tests/tests/code-first/recipes/dto/recipes.args.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/dto/recipes.args.js +30 -0
- package/dist/tests/tests/code-first/recipes/ingredients.resolver.d.ts +7 -0
- package/dist/tests/tests/code-first/recipes/ingredients.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/ingredients.resolver.js +42 -0
- package/dist/tests/tests/code-first/recipes/irecipes.resolver.d.ts +4 -0
- package/dist/tests/tests/code-first/recipes/irecipes.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/irecipes.resolver.js +22 -0
- package/dist/tests/tests/code-first/recipes/models/category.d.ts +7 -0
- package/dist/tests/tests/code-first/recipes/models/category.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/models/category.js +27 -0
- package/dist/tests/tests/code-first/recipes/models/ingredient.d.ts +12 -0
- package/dist/tests/tests/code-first/recipes/models/ingredient.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/models/ingredient.js +49 -0
- package/dist/tests/tests/code-first/recipes/models/recipe.d.ts +29 -0
- package/dist/tests/tests/code-first/recipes/models/recipe.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/models/recipe.js +80 -0
- package/dist/tests/tests/code-first/recipes/recipes.module.d.ts +3 -0
- package/dist/tests/tests/code-first/recipes/recipes.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/recipes.module.js +30 -0
- package/dist/tests/tests/code-first/recipes/recipes.resolver.d.ts +23 -0
- package/dist/tests/tests/code-first/recipes/recipes.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/recipes.resolver.js +141 -0
- package/dist/tests/tests/code-first/recipes/recipes.service.d.ts +15 -0
- package/dist/tests/tests/code-first/recipes/recipes.service.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/recipes.service.js +44 -0
- package/dist/tests/tests/code-first/recipes/unions/search-result.union.d.ts +4 -0
- package/dist/tests/tests/code-first/recipes/unions/search-result.union.d.ts.map +1 -0
- package/dist/tests/tests/code-first/recipes/unions/search-result.union.js +20 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/app.module.d.ts +3 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/app.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/app.module.js +28 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.d.ts +3 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/module-a.module.js +16 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.d.ts +4 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-a/user.resolver.js +21 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.d.ts +3 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/module-b.module.js +16 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.d.ts +4 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/module-b/user.resolver.js +21 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.d.ts +4 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-duplicate-resolvers/query.resolver.js +20 -0
- package/dist/tests/tests/code-first-federation/app.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/app.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/app.module.js +36 -0
- package/dist/tests/tests/code-first-federation/caching.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/caching.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/caching.module.js +59 -0
- package/dist/tests/tests/code-first-federation/human/character.entity.d.ts +5 -0
- package/dist/tests/tests/code-first-federation/human/character.entity.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/human/character.entity.js +19 -0
- package/dist/tests/tests/code-first-federation/human/human.entity.d.ts +6 -0
- package/dist/tests/tests/code-first-federation/human/human.entity.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/human/human.entity.js +14 -0
- package/dist/tests/tests/code-first-federation/human/human.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/human/human.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/human/human.module.js +14 -0
- package/dist/tests/tests/code-first-federation/human/human.resolver.d.ts +6 -0
- package/dist/tests/tests/code-first-federation/human/human.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/human/human.resolver.js +34 -0
- package/dist/tests/tests/code-first-federation/main.d.ts +2 -0
- package/dist/tests/tests/code-first-federation/main.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/main.js +11 -0
- package/dist/tests/tests/code-first-federation/post/post.entity.d.ts +7 -0
- package/dist/tests/tests/code-first-federation/post/post.entity.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/post/post.entity.js +28 -0
- package/dist/tests/tests/code-first-federation/post/post.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/post/post.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/post/post.module.js +16 -0
- package/dist/tests/tests/code-first-federation/post/post.resolver.d.ts +12 -0
- package/dist/tests/tests/code-first-federation/post/post.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/post/post.resolver.js +61 -0
- package/dist/tests/tests/code-first-federation/post/post.service.d.ts +7 -0
- package/dist/tests/tests/code-first-federation/post/post.service.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/post/post.service.js +37 -0
- package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.d.ts +8 -0
- package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/recipe/irecipe.resolver.js +21 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.d.ts +11 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.js +44 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/recipe/recipe.module.js +14 -0
- package/dist/tests/tests/code-first-federation/unions/search-result.union.d.ts +4 -0
- package/dist/tests/tests/code-first-federation/unions/search-result.union.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/unions/search-result.union.js +20 -0
- package/dist/tests/tests/code-first-federation/user/user.entity.d.ts +7 -0
- package/dist/tests/tests/code-first-federation/user/user.entity.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/user/user.entity.js +27 -0
- package/dist/tests/tests/code-first-federation/user/user.module.d.ts +3 -0
- package/dist/tests/tests/code-first-federation/user/user.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/user/user.module.js +16 -0
- package/dist/tests/tests/code-first-federation/user/user.resolver.d.ts +8 -0
- package/dist/tests/tests/code-first-federation/user/user.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-federation/user/user.resolver.js +27 -0
- package/dist/tests/tests/code-first-register-in/products/product.model.d.ts +5 -0
- package/dist/tests/tests/code-first-register-in/products/product.model.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/products/product.model.js +20 -0
- package/dist/tests/tests/code-first-register-in/products/products.module.d.ts +3 -0
- package/dist/tests/tests/code-first-register-in/products/products.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/products/products.module.js +14 -0
- package/dist/tests/tests/code-first-register-in/products/products.resolver.d.ts +5 -0
- package/dist/tests/tests/code-first-register-in/products/products.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/products/products.resolver.js +21 -0
- package/dist/tests/tests/code-first-register-in/shared/app-info.model.d.ts +4 -0
- package/dist/tests/tests/code-first-register-in/shared/app-info.model.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/shared/app-info.model.js +15 -0
- package/dist/tests/tests/code-first-register-in/users/create-user.input.d.ts +4 -0
- package/dist/tests/tests/code-first-register-in/users/create-user.input.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/users/create-user.input.js +16 -0
- package/dist/tests/tests/code-first-register-in/users/user.model.d.ts +7 -0
- package/dist/tests/tests/code-first-register-in/users/user.model.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/users/user.model.js +25 -0
- package/dist/tests/tests/code-first-register-in/users/users.module.d.ts +3 -0
- package/dist/tests/tests/code-first-register-in/users/users.module.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/users/users.module.js +14 -0
- package/dist/tests/tests/code-first-register-in/users/users.resolver.d.ts +8 -0
- package/dist/tests/tests/code-first-register-in/users/users.resolver.d.ts.map +1 -0
- package/dist/tests/tests/code-first-register-in/users/users.resolver.js +43 -0
- package/dist/tests/tests/duplicate-resolvers/app.module.d.ts +3 -0
- package/dist/tests/tests/duplicate-resolvers/app.module.d.ts.map +1 -0
- package/dist/tests/tests/duplicate-resolvers/app.module.js +27 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.d.ts +3 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.d.ts.map +1 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/module-a.module.js +16 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.d.ts +4 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.d.ts.map +1 -0
- package/dist/tests/tests/duplicate-resolvers/module-a/user.resolver.js +21 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.d.ts +3 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.d.ts.map +1 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/module-b.module.js +16 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.d.ts +4 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.d.ts.map +1 -0
- package/dist/tests/tests/duplicate-resolvers/module-b/user.resolver.js +21 -0
- package/dist/tests/tests/e2e/code-first-federation-caching.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first-federation-caching.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first-federation-caching.spec.js +96 -0
- package/dist/tests/tests/e2e/code-first-federation.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first-federation.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first-federation.spec.js +116 -0
- package/dist/tests/tests/e2e/code-first-inheritance.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first-inheritance.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first-inheritance.spec.js +93 -0
- package/dist/tests/tests/e2e/code-first-register-in.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first-register-in.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first-register-in.spec.js +203 -0
- package/dist/tests/tests/e2e/code-first-schema.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first-schema.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first-schema.spec.js +783 -0
- package/dist/tests/tests/e2e/code-first.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/code-first.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/code-first.spec.js +157 -0
- package/dist/tests/tests/e2e/custom-context.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/custom-context.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/custom-context.spec.js +48 -0
- package/dist/tests/tests/e2e/duplicate-resolvers.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/duplicate-resolvers.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/duplicate-resolvers.spec.js +65 -0
- package/dist/tests/tests/e2e/enum-union-directives.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/enum-union-directives.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/enum-union-directives.spec.js +122 -0
- package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/federation-timestamp-scalar.spec.js +88 -0
- package/dist/tests/tests/e2e/generated-definitions.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/generated-definitions.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/generated-definitions.spec.js +211 -0
- package/dist/tests/tests/e2e/global-prefix-fastify.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/global-prefix-fastify.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/global-prefix-fastify.spec.js +131 -0
- package/dist/tests/tests/e2e/global-prefix.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/global-prefix.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/global-prefix.spec.js +219 -0
- package/dist/tests/tests/e2e/graphiql-playground.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphiql-playground.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphiql-playground.spec.js +186 -0
- package/dist/tests/tests/e2e/graphql-async-class.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-async-class.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-async-class.spec.js +36 -0
- package/dist/tests/tests/e2e/graphql-async-existing.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-async-existing.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-async-existing.spec.js +36 -0
- package/dist/tests/tests/e2e/graphql-async.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-async.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-async.spec.js +34 -0
- package/dist/tests/tests/e2e/graphql-fastify.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-fastify.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-fastify.spec.js +48 -0
- package/dist/tests/tests/e2e/graphql-federation-async-class.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation-async-class.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation-async-class.spec.js +42 -0
- package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation-async-existing.spec.js +42 -0
- package/dist/tests/tests/e2e/graphql-federation-async.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation-async.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation-async.spec.js +42 -0
- package/dist/tests/tests/e2e/graphql-federation-fastify.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation-fastify.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation-fastify.spec.js +48 -0
- package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation-schema-host.spec.js +23 -0
- package/dist/tests/tests/e2e/graphql-federation.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-federation.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-federation.spec.js +202 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-class.spec.js +103 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway-async-existing.spec.js +103 -0
- package/dist/tests/tests/e2e/graphql-gateway-async.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway-async.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway-async.spec.js +83 -0
- package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway-fastify.spec.js +119 -0
- package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway-transform-schema.spec.js +108 -0
- package/dist/tests/tests/e2e/graphql-gateway.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-gateway.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-gateway.spec.js +121 -0
- package/dist/tests/tests/e2e/graphql-request-scoped.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-request-scoped.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-request-scoped.spec.js +56 -0
- package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-sort-auto-schema.spec.js +38 -0
- package/dist/tests/tests/e2e/graphql-sort-schema.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-sort-schema.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-sort-schema.spec.js +50 -0
- package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql-transform-auto-schema-file.spec.js +29 -0
- package/dist/tests/tests/e2e/graphql.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/graphql.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/graphql.spec.js +52 -0
- package/dist/tests/tests/e2e/guards-filters.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/guards-filters.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/guards-filters.spec.js +45 -0
- package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/issue-2940-http-error-status.spec.js +127 -0
- package/dist/tests/tests/e2e/pipes.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/pipes.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/pipes.spec.js +50 -0
- package/dist/tests/tests/e2e/request-scoped.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/request-scoped.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/request-scoped.spec.js +86 -0
- package/dist/tests/tests/e2e/resolver-registration-methods.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/resolver-registration-methods.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/resolver-registration-methods.spec.js +88 -0
- package/dist/tests/tests/e2e/serialized-graph.spec.d.ts +2 -0
- package/dist/tests/tests/e2e/serialized-graph.spec.d.ts.map +1 -0
- package/dist/tests/tests/e2e/serialized-graph.spec.js +23 -0
- package/dist/tests/tests/generated-definitions/array-property.fixture.d.ts +12 -0
- package/dist/tests/tests/generated-definitions/array-property.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/array-property.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/array-property.test-definitions.d.ts +12 -0
- package/dist/tests/tests/generated-definitions/array-property.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/array-property.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-header.fixture.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-header.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-header.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-header.test-definitions.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-header.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-header.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-default-type.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.d.ts +4 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.d.ts +4 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar-type-mapping.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.fixture.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/custom-scalar.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.fixture.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.d.ts +2 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/enum-as-type.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/enum.fixture.d.ts +6 -0
- package/dist/tests/tests/generated-definitions/enum.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/enum.fixture.js +16 -0
- package/dist/tests/tests/generated-definitions/enum.test-definitions.d.ts +6 -0
- package/dist/tests/tests/generated-definitions/enum.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/enum.test-definitions.js +16 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.d.ts +6 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.d.ts +6 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation-partial-query.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.fixture.d.ts +23 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.fixture.js +28 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.d.ts +23 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation-typedef.test-definitions.js +28 -0
- package/dist/tests/tests/generated-definitions/federation.fixture.d.ts +19 -0
- package/dist/tests/tests/generated-definitions/federation.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation.fixture.js +23 -0
- package/dist/tests/tests/generated-definitions/federation.test-definitions.d.ts +19 -0
- package/dist/tests/tests/generated-definitions/federation.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/federation.test-definitions.js +23 -0
- package/dist/tests/tests/generated-definitions/interface-property.fixture.d.ts +10 -0
- package/dist/tests/tests/generated-definitions/interface-property.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/interface-property.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/interface-property.test-definitions.d.ts +10 -0
- package/dist/tests/tests/generated-definitions/interface-property.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/interface-property.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/mutation.fixture.d.ts +13 -0
- package/dist/tests/tests/generated-definitions/mutation.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/mutation.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/mutation.test-definitions.d.ts +13 -0
- package/dist/tests/tests/generated-definitions/mutation.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/mutation.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.fixture.d.ts +9 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.d.ts +9 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/query-skip-args.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/query.fixture.d.ts +9 -0
- package/dist/tests/tests/generated-definitions/query.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/query.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/query.test-definitions.d.ts +9 -0
- package/dist/tests/tests/generated-definitions/query.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/query.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/simple-type.fixture.d.ts +10 -0
- package/dist/tests/tests/generated-definitions/simple-type.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/simple-type.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/simple-type.test-definitions.d.ts +10 -0
- package/dist/tests/tests/generated-definitions/simple-type.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/simple-type.test-definitions.js +7 -0
- package/dist/tests/tests/generated-definitions/type-name.fixture.d.ts +33 -0
- package/dist/tests/tests/generated-definitions/type-name.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/type-name.fixture.js +16 -0
- package/dist/tests/tests/generated-definitions/type-name.test-definitions.d.ts +33 -0
- package/dist/tests/tests/generated-definitions/type-name.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/type-name.test-definitions.js +16 -0
- package/dist/tests/tests/generated-definitions/typename.fixture.d.ts +11 -0
- package/dist/tests/tests/generated-definitions/typename.fixture.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/typename.fixture.js +7 -0
- package/dist/tests/tests/generated-definitions/typename.test-definitions.d.ts +11 -0
- package/dist/tests/tests/generated-definitions/typename.test-definitions.d.ts.map +1 -0
- package/dist/tests/tests/generated-definitions/typename.test-definitions.js +7 -0
- package/dist/tests/tests/graphql/app.module.d.ts +3 -0
- package/dist/tests/tests/graphql/app.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/app.module.js +23 -0
- package/dist/tests/tests/graphql/async-options-class.module.d.ts +3 -0
- package/dist/tests/tests/graphql/async-options-class.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/async-options-class.module.js +30 -0
- package/dist/tests/tests/graphql/async-options-existing.module.d.ts +3 -0
- package/dist/tests/tests/graphql/async-options-existing.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/async-options-existing.module.js +25 -0
- package/dist/tests/tests/graphql/async-options.module.d.ts +3 -0
- package/dist/tests/tests/graphql/async-options.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/async-options.module.js +25 -0
- package/dist/tests/tests/graphql/cats/cats-request-scoped.service.d.ts +10 -0
- package/dist/tests/tests/graphql/cats/cats-request-scoped.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/cats-request-scoped.service.js +28 -0
- package/dist/tests/tests/graphql/cats/cats.guard.d.ts +5 -0
- package/dist/tests/tests/graphql/cats/cats.guard.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/cats.guard.js +16 -0
- package/dist/tests/tests/graphql/cats/cats.module.d.ts +5 -0
- package/dist/tests/tests/graphql/cats/cats.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/cats.module.js +29 -0
- package/dist/tests/tests/graphql/cats/cats.resolvers.d.ts +13 -0
- package/dist/tests/tests/graphql/cats/cats.resolvers.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/cats.resolvers.js +79 -0
- package/dist/tests/tests/graphql/cats/cats.service.d.ts +10 -0
- package/dist/tests/tests/graphql/cats/cats.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/cats.service.js +28 -0
- package/dist/tests/tests/graphql/cats/interfaces/cat.interface.d.ts +6 -0
- package/dist/tests/tests/graphql/cats/interfaces/cat.interface.d.ts.map +1 -0
- package/dist/tests/tests/graphql/cats/interfaces/cat.interface.js +2 -0
- package/dist/tests/tests/graphql/common/scalars/date.scalar.d.ts +7 -0
- package/dist/tests/tests/graphql/common/scalars/date.scalar.d.ts.map +1 -0
- package/dist/tests/tests/graphql/common/scalars/date.scalar.js +27 -0
- package/dist/tests/tests/graphql/config.module.d.ts +3 -0
- package/dist/tests/tests/graphql/config.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/config.module.js +15 -0
- package/dist/tests/tests/graphql/config.service.d.ts +5 -0
- package/dist/tests/tests/graphql/config.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql/config.service.js +17 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.module.d.ts +3 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.module.js +26 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.resolver.d.ts +4 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.resolver.d.ts.map +1 -0
- package/dist/tests/tests/graphql/custom-context/custom-context.resolver.js +21 -0
- package/dist/tests/tests/graphql/global-prefix-async-options-class.module.d.ts +3 -0
- package/dist/tests/tests/graphql/global-prefix-async-options-class.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/global-prefix-async-options-class.module.js +31 -0
- package/dist/tests/tests/graphql/global-prefix-async-options.module.d.ts +3 -0
- package/dist/tests/tests/graphql/global-prefix-async-options.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/global-prefix-async-options.module.js +26 -0
- package/dist/tests/tests/graphql/global-prefix.module.d.ts +3 -0
- package/dist/tests/tests/graphql/global-prefix.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/global-prefix.module.js +24 -0
- package/dist/tests/tests/graphql/graphiql-playground.module.d.ts +12 -0
- package/dist/tests/tests/graphql/graphiql-playground.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/graphiql-playground.module.js +44 -0
- package/dist/tests/tests/graphql/hello/dto/test.dto.d.ts +5 -0
- package/dist/tests/tests/graphql/hello/dto/test.dto.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/dto/test.dto.js +17 -0
- package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.d.ts +10 -0
- package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/guards/request-scoped.guard.js +24 -0
- package/dist/tests/tests/graphql/hello/hello.module.d.ts +7 -0
- package/dist/tests/tests/graphql/hello/hello.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/hello.module.js +46 -0
- package/dist/tests/tests/graphql/hello/hello.resolver.d.ts +10 -0
- package/dist/tests/tests/graphql/hello/hello.resolver.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/hello.resolver.js +36 -0
- package/dist/tests/tests/graphql/hello/hello.service.d.ts +6 -0
- package/dist/tests/tests/graphql/hello/hello.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/hello.service.js +19 -0
- package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.d.ts +10 -0
- package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/interceptors/logging.interceptor.js +24 -0
- package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.d.ts +13 -0
- package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/users/user-by-id.pipe.js +26 -0
- package/dist/tests/tests/graphql/hello/users/users.service.d.ts +11 -0
- package/dist/tests/tests/graphql/hello/users/users.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql/hello/users/users.service.js +27 -0
- package/dist/tests/tests/graphql/main.d.ts +2 -0
- package/dist/tests/tests/graphql/main.d.ts.map +1 -0
- package/dist/tests/tests/graphql/main.js +9 -0
- package/dist/tests/tests/graphql/sort-auto-schema.module.d.ts +3 -0
- package/dist/tests/tests/graphql/sort-auto-schema.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/sort-auto-schema.module.js +28 -0
- package/dist/tests/tests/graphql/sort-schema.module.d.ts +3 -0
- package/dist/tests/tests/graphql/sort-schema.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/sort-schema.module.js +24 -0
- package/dist/tests/tests/graphql/transform-auto-schema-file.module.d.ts +3 -0
- package/dist/tests/tests/graphql/transform-auto-schema-file.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql/transform-auto-schema-file.module.js +27 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.module.js +15 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.service.d.ts +5 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/config/config.service.js +19 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-class.module.js +24 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async-existing.module.js +24 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway-async.module.js +26 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/gateway.module.js +24 -0
- package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/gateway/supergraph-sdl.js +95 -0
- package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/federation-posts.module.js +27 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.d.ts +9 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/date.scalar.js +31 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.d.ts +5 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/post-type.enum.js +8 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.d.ts +10 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.interfaces.js +2 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.module.js +17 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.d.ts +14 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.resolvers.js +53 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.d.ts +11 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/posts.service.js +41 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.d.ts +2 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/upper.directive.js +25 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.d.ts +7 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/posts-service/posts/users.resolvers.js +25 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.module.js +15 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.service.d.ts +5 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/config/config.service.js +19 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-class.module.js +26 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async-existing.module.js +26 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.async.module.js +28 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/federation-users.module.js +25 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.d.ts +5 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.interfaces.js +2 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.module.d.ts +3 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.module.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.module.js +15 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.d.ts +11 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.resolvers.js +35 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.service.d.ts +6 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.service.d.ts.map +1 -0
- package/dist/tests/tests/graphql-federation/users-service/users/users.service.js +22 -0
- package/dist/tests/tests/subscriptions/app/app.module.d.ts +11 -0
- package/dist/tests/tests/subscriptions/app/app.module.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/app/app.module.js +30 -0
- package/dist/tests/tests/subscriptions/app/auth.guard.d.ts +5 -0
- package/dist/tests/tests/subscriptions/app/auth.guard.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/app/auth.guard.js +16 -0
- package/dist/tests/tests/subscriptions/app/notification.d.ts +6 -0
- package/dist/tests/tests/subscriptions/app/notification.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/app/notification.js +29 -0
- package/dist/tests/tests/subscriptions/app/notification.module.d.ts +3 -0
- package/dist/tests/tests/subscriptions/app/notification.module.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/app/notification.module.js +14 -0
- package/dist/tests/tests/subscriptions/app/notification.resolver.d.ts +10 -0
- package/dist/tests/tests/subscriptions/app/notification.resolver.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/app/notification.resolver.js +50 -0
- package/dist/tests/tests/subscriptions/async-iterator.spec.d.ts +2 -0
- package/dist/tests/tests/subscriptions/async-iterator.spec.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/async-iterator.spec.js +48 -0
- package/dist/tests/tests/subscriptions/federation-app/federation-app.module.d.ts +9 -0
- package/dist/tests/tests/subscriptions/federation-app/federation-app.module.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/federation-app/federation-app.module.js +29 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.d.ts +6 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.js +23 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.module.d.ts +3 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.module.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.module.js +14 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.resolver.d.ts +8 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.resolver.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/federation-app/notification.resolver.js +39 -0
- package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.d.ts +2 -0
- package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/federation-graphql-ws.spec.js +114 -0
- package/dist/tests/tests/subscriptions/graphql-ws.spec.d.ts +2 -0
- package/dist/tests/tests/subscriptions/graphql-ws.spec.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/graphql-ws.spec.js +238 -0
- package/dist/tests/tests/subscriptions/utils/graphql-ws.link.d.ts +9 -0
- package/dist/tests/tests/subscriptions/utils/graphql-ws.link.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/utils/graphql-ws.link.js +22 -0
- package/dist/tests/tests/subscriptions/utils/malformed-token.exception.d.ts +4 -0
- package/dist/tests/tests/subscriptions/utils/malformed-token.exception.d.ts.map +1 -0
- package/dist/tests/tests/subscriptions/utils/malformed-token.exception.js +9 -0
- package/dist/tests/tests/utils/assertion-utils.d.ts +4 -0
- package/dist/tests/tests/utils/assertion-utils.d.ts.map +1 -0
- package/dist/tests/tests/utils/assertion-utils.js +11 -0
- package/dist/tests/tests/utils/introspection-schema.utils.d.ts +8 -0
- package/dist/tests/tests/utils/introspection-schema.utils.d.ts.map +1 -0
- package/dist/tests/tests/utils/introspection-schema.utils.js +29 -0
- package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.d.ts +2 -0
- package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.d.ts.map +1 -0
- package/dist/tests/tests/utils/printed-schema-with-cache-control.snapshot.js +47 -0
- package/dist/tests/tests/utils/printed-schema.snapshot.d.ts +3 -0
- package/dist/tests/tests/utils/printed-schema.snapshot.d.ts.map +1 -0
- package/dist/tests/tests/utils/printed-schema.snapshot.js +217 -0
- package/dist/tests/tsconfig.spec.tsbuildinfo +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HumanResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const human_entity_1 = require("./human.entity");
|
|
7
|
+
const character_entity_1 = require("./character.entity");
|
|
8
|
+
let HumanResolver = class HumanResolver {
|
|
9
|
+
humans() {
|
|
10
|
+
return [
|
|
11
|
+
{ id: '1', name: 'Bob' },
|
|
12
|
+
{ id: '2', name: 'Alice' },
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
friends() {
|
|
16
|
+
return [{ id: '3', name: 'Peter' }];
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.HumanResolver = HumanResolver;
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Query)(() => [human_entity_1.Human]),
|
|
22
|
+
tslib_1.__metadata("design:type", Function),
|
|
23
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
24
|
+
tslib_1.__metadata("design:returntype", Array)
|
|
25
|
+
], HumanResolver.prototype, "humans", null);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, graphql_1.ResolveField)(() => [human_entity_1.Human]),
|
|
28
|
+
tslib_1.__metadata("design:type", Function),
|
|
29
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
30
|
+
tslib_1.__metadata("design:returntype", Array)
|
|
31
|
+
], HumanResolver.prototype, "friends", null);
|
|
32
|
+
exports.HumanResolver = HumanResolver = tslib_1.__decorate([
|
|
33
|
+
(0, graphql_1.Resolver)(() => character_entity_1.Character)
|
|
34
|
+
], HumanResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../tests/code-first-federation/main.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("@nestjs/common");
|
|
4
|
+
const core_1 = require("@nestjs/core");
|
|
5
|
+
const app_module_1 = require("./app.module");
|
|
6
|
+
async function bootstrap() {
|
|
7
|
+
const app = await core_1.NestFactory.create(app_module_1.ApplicationModule);
|
|
8
|
+
app.useGlobalPipes(new common_1.ValidationPipe());
|
|
9
|
+
await app.listen(3000);
|
|
10
|
+
}
|
|
11
|
+
bootstrap();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.entity.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/post/post.entity.ts"],"names":[],"mappings":"AAEA,qBAEa,IAAI;IAER,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;gBAEZ,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Post = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let Post = class Post {
|
|
7
|
+
constructor(post) {
|
|
8
|
+
Object.assign(this, post);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
exports.Post = Post;
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
14
|
+
tslib_1.__metadata("design:type", Number)
|
|
15
|
+
], Post.prototype, "id", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, graphql_1.Field)(),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], Post.prototype, "title", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Field)((type) => graphql_1.Int),
|
|
22
|
+
tslib_1.__metadata("design:type", Number)
|
|
23
|
+
], Post.prototype, "authorId", void 0);
|
|
24
|
+
exports.Post = Post = tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.ObjectType)(),
|
|
26
|
+
(0, graphql_1.Directive)('@key(fields: "id")'),
|
|
27
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
28
|
+
], Post);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/post/post.module.ts"],"names":[],"mappings":"AAIA,qBAIa,UAAU;CAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const post_service_1 = require("./post.service");
|
|
7
|
+
const post_resolver_1 = require("./post.resolver");
|
|
8
|
+
let PostModule = class PostModule {
|
|
9
|
+
};
|
|
10
|
+
exports.PostModule = PostModule;
|
|
11
|
+
exports.PostModule = PostModule = tslib_1.__decorate([
|
|
12
|
+
(0, common_1.Module)({
|
|
13
|
+
providers: [post_service_1.PostService, post_resolver_1.PostResolver],
|
|
14
|
+
exports: [post_service_1.PostService],
|
|
15
|
+
})
|
|
16
|
+
], PostModule);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FederationSearchResultUnion } from '../unions/search-result.union';
|
|
2
|
+
import { Post } from './post.entity';
|
|
3
|
+
import { PostService } from './post.service';
|
|
4
|
+
export declare class PostResolver {
|
|
5
|
+
private readonly postService;
|
|
6
|
+
constructor(postService: PostService);
|
|
7
|
+
findPost(id: number): Post;
|
|
8
|
+
getPosts(): Post[];
|
|
9
|
+
search(): Array<typeof FederationSearchResultUnion>;
|
|
10
|
+
resolveRef(reference: any): Post;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=post.resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/post/post.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBACa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAG9C,QAAQ,CAAa,EAAE,EAAE,MAAM;IAK/B,QAAQ;IAOf,MAAM,IAAI,KAAK,CAAC,OAAO,2BAA2B,CAAC;IAQ5C,UAAU,CAAC,SAAS,EAAE,GAAG;CAGjC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const search_result_union_1 = require("../unions/search-result.union");
|
|
7
|
+
const user_entity_1 = require("../user/user.entity");
|
|
8
|
+
const post_entity_1 = require("./post.entity");
|
|
9
|
+
const post_service_1 = require("./post.service");
|
|
10
|
+
let PostResolver = class PostResolver {
|
|
11
|
+
constructor(postService) {
|
|
12
|
+
this.postService = postService;
|
|
13
|
+
}
|
|
14
|
+
findPost(id) {
|
|
15
|
+
return this.postService.findOne(id);
|
|
16
|
+
}
|
|
17
|
+
getPosts() {
|
|
18
|
+
return this.postService.all();
|
|
19
|
+
}
|
|
20
|
+
search() {
|
|
21
|
+
return [
|
|
22
|
+
new user_entity_1.User({ id: 1, posts: [] }),
|
|
23
|
+
new post_entity_1.Post({ id: 2, title: 'lorem ipsum', authorId: 1 }),
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
resolveRef(reference) {
|
|
27
|
+
return this.postService.findOne(reference.id);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.PostResolver = PostResolver;
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, graphql_1.Query)((returns) => post_entity_1.Post),
|
|
33
|
+
tslib_1.__param(0, (0, graphql_1.Args)('id')),
|
|
34
|
+
tslib_1.__metadata("design:type", Function),
|
|
35
|
+
tslib_1.__metadata("design:paramtypes", [Number]),
|
|
36
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
37
|
+
], PostResolver.prototype, "findPost", null);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, graphql_1.Query)((returns) => [post_entity_1.Post]),
|
|
40
|
+
tslib_1.__metadata("design:type", Function),
|
|
41
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
42
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
43
|
+
], PostResolver.prototype, "getPosts", null);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, graphql_1.Query)((returns) => [search_result_union_1.FederationSearchResultUnion], {
|
|
46
|
+
deprecationReason: 'test',
|
|
47
|
+
}),
|
|
48
|
+
tslib_1.__metadata("design:type", Function),
|
|
49
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
50
|
+
tslib_1.__metadata("design:returntype", Array)
|
|
51
|
+
], PostResolver.prototype, "search", null);
|
|
52
|
+
tslib_1.__decorate([
|
|
53
|
+
(0, graphql_1.ResolveReference)(),
|
|
54
|
+
tslib_1.__metadata("design:type", Function),
|
|
55
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
56
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
57
|
+
], PostResolver.prototype, "resolveRef", null);
|
|
58
|
+
exports.PostResolver = PostResolver = tslib_1.__decorate([
|
|
59
|
+
(0, graphql_1.Resolver)((of) => post_entity_1.Post),
|
|
60
|
+
tslib_1.__metadata("design:paramtypes", [post_service_1.PostService])
|
|
61
|
+
], PostResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.service.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/post/post.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAgBrC,qBACa,WAAW;IACf,OAAO,CAAC,EAAE,EAAE,MAAM;IAQlB,GAAG;IAIH,SAAS,CAAC,QAAQ,EAAE,MAAM;CAGlC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const post_entity_1 = require("./post.entity");
|
|
6
|
+
const common_1 = require("@nestjs/common");
|
|
7
|
+
const data = [
|
|
8
|
+
{
|
|
9
|
+
id: 1,
|
|
10
|
+
title: 'HELLO WORLD',
|
|
11
|
+
authorId: 2,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: 2,
|
|
15
|
+
title: 'lorem ipsum',
|
|
16
|
+
authorId: 1,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
let PostService = class PostService {
|
|
20
|
+
findOne(id) {
|
|
21
|
+
const post = data.find((p) => p.id === id);
|
|
22
|
+
if (post) {
|
|
23
|
+
return new post_entity_1.Post(post);
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
all() {
|
|
28
|
+
return data.map((p) => new post_entity_1.Post(p));
|
|
29
|
+
}
|
|
30
|
+
forAuthor(authorId) {
|
|
31
|
+
return data.filter((p) => p.authorId === authorId).map((p) => new post_entity_1.Post(p));
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.PostService = PostService;
|
|
35
|
+
exports.PostService = PostService = tslib_1.__decorate([
|
|
36
|
+
(0, common_1.Injectable)()
|
|
37
|
+
], PostService);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"irecipe.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/recipe/irecipe.resolver.ts"],"names":[],"mappings":"AAGA,qBACa,eAAe;IAEnB,MAAM;;;;;CAGd"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IRecipeResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const recipe_1 = require("./recipe");
|
|
7
|
+
let IRecipeResolver = class IRecipeResolver {
|
|
8
|
+
recipe() {
|
|
9
|
+
return { id: '1', title: 'Recipe', description: 'Interface description' };
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.IRecipeResolver = IRecipeResolver;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Query)((returns) => recipe_1.IRecipe),
|
|
15
|
+
tslib_1.__metadata("design:type", Function),
|
|
16
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
17
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
18
|
+
], IRecipeResolver.prototype, "recipe", null);
|
|
19
|
+
exports.IRecipeResolver = IRecipeResolver = tslib_1.__decorate([
|
|
20
|
+
(0, graphql_1.Resolver)((of) => recipe_1.IRecipe)
|
|
21
|
+
], IRecipeResolver);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare abstract class Base {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
export declare abstract class IRecipe extends Base {
|
|
5
|
+
title: string;
|
|
6
|
+
externalField: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class Recipe extends IRecipe {
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/recipe/recipe.ts"],"names":[],"mappings":"AAQA,8BACsB,IAAI;IAExB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,8BAKsB,OAAQ,SAAQ,IAAI;IAExC,KAAK,EAAE,MAAM,CAAC;IAId,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,MAAO,SAAQ,OAAO;IAEjC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Recipe = exports.IRecipe = exports.Base = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let Base = class Base {
|
|
7
|
+
};
|
|
8
|
+
exports.Base = Base;
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
12
|
+
], Base.prototype, "id", void 0);
|
|
13
|
+
exports.Base = Base = tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.InterfaceType)()
|
|
15
|
+
], Base);
|
|
16
|
+
let IRecipe = class IRecipe extends Base {
|
|
17
|
+
};
|
|
18
|
+
exports.IRecipe = IRecipe;
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, graphql_1.Field)(),
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
|
+
], IRecipe.prototype, "title", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, graphql_1.Field)(),
|
|
25
|
+
(0, graphql_1.Directive)('@external'),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], IRecipe.prototype, "externalField", void 0);
|
|
28
|
+
exports.IRecipe = IRecipe = tslib_1.__decorate([
|
|
29
|
+
(0, graphql_1.InterfaceType)({
|
|
30
|
+
resolveType: (value) => {
|
|
31
|
+
return Recipe;
|
|
32
|
+
},
|
|
33
|
+
})
|
|
34
|
+
], IRecipe);
|
|
35
|
+
let Recipe = class Recipe extends IRecipe {
|
|
36
|
+
};
|
|
37
|
+
exports.Recipe = Recipe;
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, graphql_1.Field)(),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], Recipe.prototype, "description", void 0);
|
|
42
|
+
exports.Recipe = Recipe = tslib_1.__decorate([
|
|
43
|
+
(0, graphql_1.ObjectType)({ implements: IRecipe })
|
|
44
|
+
], Recipe);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/recipe/recipe.module.ts"],"names":[],"mappings":"AAGA,qBAGa,YAAY;CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecipeModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const irecipe_resolver_1 = require("./irecipe.resolver");
|
|
7
|
+
let RecipeModule = class RecipeModule {
|
|
8
|
+
};
|
|
9
|
+
exports.RecipeModule = RecipeModule;
|
|
10
|
+
exports.RecipeModule = RecipeModule = tslib_1.__decorate([
|
|
11
|
+
(0, common_1.Module)({
|
|
12
|
+
providers: [irecipe_resolver_1.IRecipeResolver],
|
|
13
|
+
})
|
|
14
|
+
], RecipeModule);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-result.union.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/unions/search-result.union.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,eAAO,MAAM,2BAA2B,aAatC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FederationSearchResultUnion = void 0;
|
|
4
|
+
const type_factories_1 = require("@nestjs/graphql/type-factories");
|
|
5
|
+
const post_entity_1 = require("../post/post.entity");
|
|
6
|
+
const user_entity_1 = require("../user/user.entity");
|
|
7
|
+
exports.FederationSearchResultUnion = (0, type_factories_1.createUnionType)({
|
|
8
|
+
name: 'FederationSearchResultUnion',
|
|
9
|
+
description: 'Search result description',
|
|
10
|
+
types: () => [post_entity_1.Post, user_entity_1.User],
|
|
11
|
+
resolveType: (value) => {
|
|
12
|
+
if ('posts' in value) {
|
|
13
|
+
return user_entity_1.User;
|
|
14
|
+
}
|
|
15
|
+
if ('title' in value) {
|
|
16
|
+
return post_entity_1.Post;
|
|
17
|
+
}
|
|
18
|
+
return undefined;
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/user/user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C,qBAGa,IAAI;IAGR,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,IAAI,EAAE,CAAC;gBAET,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;CAGhC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.User = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const post_entity_1 = require("../post/post.entity");
|
|
7
|
+
let User = class User {
|
|
8
|
+
constructor(post) {
|
|
9
|
+
Object.assign(this, post);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.User = User;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
15
|
+
(0, graphql_1.Directive)('@external'),
|
|
16
|
+
tslib_1.__metadata("design:type", Number)
|
|
17
|
+
], User.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, graphql_1.Field)((type) => [post_entity_1.Post]),
|
|
20
|
+
tslib_1.__metadata("design:type", Array)
|
|
21
|
+
], User.prototype, "posts", void 0);
|
|
22
|
+
exports.User = User = tslib_1.__decorate([
|
|
23
|
+
(0, graphql_1.ObjectType)(),
|
|
24
|
+
(0, graphql_1.Directive)('@extends'),
|
|
25
|
+
(0, graphql_1.Directive)('@key(fields: "id")'),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
27
|
+
], User);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/user/user.module.ts"],"names":[],"mappings":"AAIA,qBAIa,UAAU;CAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const user_resolver_1 = require("./user.resolver");
|
|
7
|
+
const post_module_1 = require("../post/post.module");
|
|
8
|
+
let UserModule = class UserModule {
|
|
9
|
+
};
|
|
10
|
+
exports.UserModule = UserModule;
|
|
11
|
+
exports.UserModule = UserModule = tslib_1.__decorate([
|
|
12
|
+
(0, common_1.Module)({
|
|
13
|
+
providers: [user_resolver_1.UserResolver],
|
|
14
|
+
imports: [post_module_1.PostModule],
|
|
15
|
+
})
|
|
16
|
+
], UserModule);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PostService } from '../post/post.service';
|
|
2
|
+
import { User } from './user.entity';
|
|
3
|
+
export declare class UserResolver {
|
|
4
|
+
private readonly postService;
|
|
5
|
+
constructor(postService: PostService);
|
|
6
|
+
posts(user: User): import("../post/post.entity").Post[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=user.resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-federation/user/user.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBACa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAG9C,KAAK,CAAW,IAAI,EAAE,IAAI;CAGlC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const post_service_1 = require("../post/post.service");
|
|
7
|
+
const user_entity_1 = require("./user.entity");
|
|
8
|
+
let UserResolver = class UserResolver {
|
|
9
|
+
constructor(postService) {
|
|
10
|
+
this.postService = postService;
|
|
11
|
+
}
|
|
12
|
+
posts(user) {
|
|
13
|
+
return this.postService.forAuthor(user.id);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.UserResolver = UserResolver;
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, graphql_1.ResolveField)(),
|
|
19
|
+
tslib_1.__param(0, (0, graphql_1.Parent)()),
|
|
20
|
+
tslib_1.__metadata("design:type", Function),
|
|
21
|
+
tslib_1.__metadata("design:paramtypes", [user_entity_1.User]),
|
|
22
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
23
|
+
], UserResolver.prototype, "posts", null);
|
|
24
|
+
exports.UserResolver = UserResolver = tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.Resolver)((of) => user_entity_1.User),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [post_service_1.PostService])
|
|
27
|
+
], UserResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-register-in/products/product.model.ts"],"names":[],"mappings":"AAGA,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Product = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const products_module_1 = require("./products.module");
|
|
7
|
+
let Product = class Product {
|
|
8
|
+
};
|
|
9
|
+
exports.Product = Product;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], Product.prototype, "id", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, graphql_1.Field)(),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], Product.prototype, "name", void 0);
|
|
18
|
+
exports.Product = Product = tslib_1.__decorate([
|
|
19
|
+
(0, graphql_1.ObjectType)({ registerIn: () => products_module_1.ProductsModule })
|
|
20
|
+
], Product);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-register-in/products/products.module.ts"],"names":[],"mappings":"AAGA,qBAGa,cAAc;CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductsModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const products_resolver_1 = require("./products.resolver");
|
|
7
|
+
let ProductsModule = class ProductsModule {
|
|
8
|
+
};
|
|
9
|
+
exports.ProductsModule = ProductsModule;
|
|
10
|
+
exports.ProductsModule = ProductsModule = tslib_1.__decorate([
|
|
11
|
+
(0, common_1.Module)({
|
|
12
|
+
providers: [products_resolver_1.ProductsResolver],
|
|
13
|
+
})
|
|
14
|
+
], ProductsModule);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-register-in/products/products.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,qBACa,gBAAgB;IAE3B,QAAQ,IAAI,OAAO,EAAE;CAGtB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductsResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const product_model_1 = require("./product.model");
|
|
7
|
+
let ProductsResolver = class ProductsResolver {
|
|
8
|
+
products() {
|
|
9
|
+
return [{ id: '1', name: 'Widget' }];
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.ProductsResolver = ProductsResolver;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Query)((returns) => [product_model_1.Product]),
|
|
15
|
+
tslib_1.__metadata("design:type", Function),
|
|
16
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
17
|
+
tslib_1.__metadata("design:returntype", Array)
|
|
18
|
+
], ProductsResolver.prototype, "products", null);
|
|
19
|
+
exports.ProductsResolver = ProductsResolver = tslib_1.__decorate([
|
|
20
|
+
(0, graphql_1.Resolver)((of) => product_model_1.Product)
|
|
21
|
+
], ProductsResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-info.model.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first-register-in/shared/app-info.model.ts"],"names":[],"mappings":"AAEA,qBACa,OAAO;IAElB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppInfo = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let AppInfo = class AppInfo {
|
|
7
|
+
};
|
|
8
|
+
exports.AppInfo = AppInfo;
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, graphql_1.Field)(),
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
12
|
+
], AppInfo.prototype, "version", void 0);
|
|
13
|
+
exports.AppInfo = AppInfo = tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.ObjectType)()
|
|
15
|
+
], AppInfo);
|