@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 @@
|
|
|
1
|
+
{"version":3,"file":"code-first.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/code-first.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
4
|
+
const testing_1 = require("@nestjs/testing");
|
|
5
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
6
|
+
const app_module_1 = require("../code-first/app.module");
|
|
7
|
+
const assertion_utils_1 = require("../utils/assertion-utils");
|
|
8
|
+
describe('Code-first', () => {
|
|
9
|
+
let app;
|
|
10
|
+
let apolloClient;
|
|
11
|
+
beforeEach(async () => {
|
|
12
|
+
const module = await testing_1.Test.createTestingModule({
|
|
13
|
+
imports: [app_module_1.ApplicationModule],
|
|
14
|
+
}).compile();
|
|
15
|
+
app = module.createNestApplication();
|
|
16
|
+
await app.init();
|
|
17
|
+
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
18
|
+
apolloClient = graphqlModule.graphQlAdapter?.instance;
|
|
19
|
+
});
|
|
20
|
+
it('should return the categories result', async () => {
|
|
21
|
+
const response = await apolloClient.executeOperation({
|
|
22
|
+
query: (0, graphql_tag_1.gql) `
|
|
23
|
+
{
|
|
24
|
+
categories {
|
|
25
|
+
name
|
|
26
|
+
description
|
|
27
|
+
tags
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`,
|
|
31
|
+
});
|
|
32
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
33
|
+
categories: [
|
|
34
|
+
{
|
|
35
|
+
name: 'Category #1',
|
|
36
|
+
description: 'default value',
|
|
37
|
+
tags: [],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
it('should return the search result', async () => {
|
|
43
|
+
const response = await apolloClient.executeOperation({
|
|
44
|
+
query: (0, graphql_tag_1.gql) `
|
|
45
|
+
{
|
|
46
|
+
search {
|
|
47
|
+
... on Recipe {
|
|
48
|
+
title
|
|
49
|
+
}
|
|
50
|
+
... on Ingredient {
|
|
51
|
+
name
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`,
|
|
56
|
+
});
|
|
57
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
58
|
+
search: [
|
|
59
|
+
{
|
|
60
|
+
title: 'recipe',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'test',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
it(`should return query result`, async () => {
|
|
69
|
+
const response = await apolloClient.executeOperation({
|
|
70
|
+
query: (0, graphql_tag_1.gql) `
|
|
71
|
+
{
|
|
72
|
+
recipes {
|
|
73
|
+
id
|
|
74
|
+
description
|
|
75
|
+
ingredients {
|
|
76
|
+
name
|
|
77
|
+
}
|
|
78
|
+
rating
|
|
79
|
+
interfaceResolver
|
|
80
|
+
averageRating
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`,
|
|
84
|
+
});
|
|
85
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
86
|
+
recipes: [
|
|
87
|
+
{
|
|
88
|
+
id: '1',
|
|
89
|
+
description: 'Description: Calzone',
|
|
90
|
+
ingredients: [
|
|
91
|
+
{
|
|
92
|
+
name: 'cherry',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
rating: 10,
|
|
96
|
+
interfaceResolver: true,
|
|
97
|
+
averageRating: 0.5,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: '2',
|
|
101
|
+
description: 'Placeholder',
|
|
102
|
+
ingredients: [
|
|
103
|
+
{
|
|
104
|
+
name: 'cherry',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
rating: 10,
|
|
108
|
+
interfaceResolver: true,
|
|
109
|
+
averageRating: 0.5,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
it(`should return query result`, async () => {
|
|
115
|
+
const response = await apolloClient.executeOperation({
|
|
116
|
+
query: (0, graphql_tag_1.gql) `
|
|
117
|
+
{
|
|
118
|
+
recipes {
|
|
119
|
+
id
|
|
120
|
+
ingredients {
|
|
121
|
+
name
|
|
122
|
+
}
|
|
123
|
+
rating
|
|
124
|
+
averageRating
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
`,
|
|
128
|
+
});
|
|
129
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
130
|
+
recipes: [
|
|
131
|
+
{
|
|
132
|
+
id: '1',
|
|
133
|
+
ingredients: [
|
|
134
|
+
{
|
|
135
|
+
name: 'cherry',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
rating: 10,
|
|
139
|
+
averageRating: 0.5,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: '2',
|
|
143
|
+
ingredients: [
|
|
144
|
+
{
|
|
145
|
+
name: 'cherry',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
rating: 10,
|
|
149
|
+
averageRating: 0.5,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
afterEach(async () => {
|
|
155
|
+
await app.close();
|
|
156
|
+
});
|
|
157
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-context.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/custom-context.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
5
|
+
const testing_1 = require("@nestjs/testing");
|
|
6
|
+
const supertest_1 = tslib_1.__importDefault(require("supertest"));
|
|
7
|
+
const custom_context_module_1 = require("../graphql/custom-context/custom-context.module");
|
|
8
|
+
const platform_fastify_1 = require("@nestjs/platform-fastify");
|
|
9
|
+
describe('GraphQL (custom context)', () => {
|
|
10
|
+
let app;
|
|
11
|
+
describe.each([
|
|
12
|
+
['Express', new platform_express_1.ExpressAdapter()],
|
|
13
|
+
['Fastify', new platform_fastify_1.FastifyAdapter()],
|
|
14
|
+
])('Custom context with %s', (_, adapter) => {
|
|
15
|
+
beforeEach(async () => {
|
|
16
|
+
const module = await testing_1.Test.createTestingModule({
|
|
17
|
+
imports: [custom_context_module_1.CustomContextModule],
|
|
18
|
+
}).compile();
|
|
19
|
+
app = module.createNestApplication(adapter);
|
|
20
|
+
await app.init();
|
|
21
|
+
const instance = app.getHttpAdapter().getInstance();
|
|
22
|
+
if ('ready' in instance && typeof instance.ready === 'function') {
|
|
23
|
+
await instance.ready();
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
it('should return query result', () => {
|
|
27
|
+
return (0, supertest_1.default)(app.getHttpServer())
|
|
28
|
+
.post('/graphql')
|
|
29
|
+
.send({
|
|
30
|
+
operationName: null,
|
|
31
|
+
variables: {},
|
|
32
|
+
query: `
|
|
33
|
+
{
|
|
34
|
+
fooFromContext
|
|
35
|
+
}
|
|
36
|
+
`,
|
|
37
|
+
})
|
|
38
|
+
.expect(200, {
|
|
39
|
+
data: {
|
|
40
|
+
fooFromContext: 'bar',
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
afterEach(async () => {
|
|
45
|
+
await app.close();
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duplicate-resolvers.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/duplicate-resolvers.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
4
|
+
const testing_1 = require("@nestjs/testing");
|
|
5
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
6
|
+
const app_module_1 = require("../code-first-duplicate-resolvers/app.module");
|
|
7
|
+
const app_module_2 = require("../duplicate-resolvers/app.module");
|
|
8
|
+
const assertion_utils_1 = require("../utils/assertion-utils");
|
|
9
|
+
describe('Duplicate resolvers', () => {
|
|
10
|
+
let app;
|
|
11
|
+
let apolloClient;
|
|
12
|
+
describe('code-first', () => {
|
|
13
|
+
beforeEach(async () => {
|
|
14
|
+
const module = await testing_1.Test.createTestingModule({
|
|
15
|
+
imports: [app_module_1.AppModule],
|
|
16
|
+
}).compile();
|
|
17
|
+
app = module.createNestApplication();
|
|
18
|
+
await app.init();
|
|
19
|
+
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
20
|
+
apolloClient = graphqlModule.graphQlAdapter?.instance;
|
|
21
|
+
});
|
|
22
|
+
it('should return results from both resolvers', async () => {
|
|
23
|
+
const response = await apolloClient.executeOperation({
|
|
24
|
+
query: (0, graphql_tag_1.gql) `
|
|
25
|
+
mutation {
|
|
26
|
+
moduleALogin(code: "hello")
|
|
27
|
+
moduleBLogin(username: "bye")
|
|
28
|
+
}
|
|
29
|
+
`,
|
|
30
|
+
});
|
|
31
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
32
|
+
moduleALogin: 'hello',
|
|
33
|
+
moduleBLogin: 'bye',
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
describe('schema-first', () => {
|
|
38
|
+
beforeEach(async () => {
|
|
39
|
+
const module = await testing_1.Test.createTestingModule({
|
|
40
|
+
imports: [app_module_2.AppModule],
|
|
41
|
+
}).compile();
|
|
42
|
+
app = module.createNestApplication();
|
|
43
|
+
await app.init();
|
|
44
|
+
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
45
|
+
apolloClient = graphqlModule.graphQlAdapter?.instance;
|
|
46
|
+
});
|
|
47
|
+
it('should return results from both resolvers', async () => {
|
|
48
|
+
const response = await apolloClient.executeOperation({
|
|
49
|
+
query: (0, graphql_tag_1.gql) `
|
|
50
|
+
mutation {
|
|
51
|
+
moduleALogin(code: "hello")
|
|
52
|
+
moduleBLogin(username: "bye")
|
|
53
|
+
}
|
|
54
|
+
`,
|
|
55
|
+
});
|
|
56
|
+
(0, assertion_utils_1.expectSingleResult)(response).toEqual({
|
|
57
|
+
moduleALogin: 'hello',
|
|
58
|
+
moduleBLogin: 'bye',
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
afterEach(async () => {
|
|
63
|
+
await app.close();
|
|
64
|
+
});
|
|
65
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-union-directives.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/enum-union-directives.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const disabled_1 = require("@apollo/server/plugin/disabled");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
7
|
+
const testing_1 = require("@nestjs/testing");
|
|
8
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
9
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
10
|
+
const lib_1 = require("../../lib");
|
|
11
|
+
var Visibility;
|
|
12
|
+
(function (Visibility) {
|
|
13
|
+
Visibility["PUBLIC"] = "PUBLIC";
|
|
14
|
+
Visibility["PRIVATE"] = "PRIVATE";
|
|
15
|
+
})(Visibility || (Visibility = {}));
|
|
16
|
+
(0, graphql_1.registerEnumType)(Visibility, {
|
|
17
|
+
name: 'Visibility',
|
|
18
|
+
description: 'Visibility of a resource',
|
|
19
|
+
directives: ['@tag(name: "visibility")'],
|
|
20
|
+
valuesMap: {
|
|
21
|
+
PUBLIC: { directives: ['@tag(name: "public")'] },
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
let Article = class Article {
|
|
25
|
+
};
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], Article.prototype, "id", void 0);
|
|
30
|
+
Article = tslib_1.__decorate([
|
|
31
|
+
(0, graphql_1.ObjectType)(),
|
|
32
|
+
(0, graphql_1.Directive)('@key(fields: "id")')
|
|
33
|
+
], Article);
|
|
34
|
+
let Video = class Video {
|
|
35
|
+
};
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
38
|
+
tslib_1.__metadata("design:type", String)
|
|
39
|
+
], Video.prototype, "id", void 0);
|
|
40
|
+
Video = tslib_1.__decorate([
|
|
41
|
+
(0, graphql_1.ObjectType)(),
|
|
42
|
+
(0, graphql_1.Directive)('@key(fields: "id")')
|
|
43
|
+
], Video);
|
|
44
|
+
const Media = (0, graphql_1.createUnionType)({
|
|
45
|
+
name: 'Media',
|
|
46
|
+
types: () => [Article, Video],
|
|
47
|
+
directives: ['@tag(name: "media")'],
|
|
48
|
+
});
|
|
49
|
+
let DirectivesResolver = class DirectivesResolver {
|
|
50
|
+
visibility() {
|
|
51
|
+
return Visibility.PUBLIC;
|
|
52
|
+
}
|
|
53
|
+
latest() {
|
|
54
|
+
return { id: '1' };
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, graphql_1.Query)(() => Visibility),
|
|
59
|
+
tslib_1.__metadata("design:type", Function),
|
|
60
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
61
|
+
tslib_1.__metadata("design:returntype", String)
|
|
62
|
+
], DirectivesResolver.prototype, "visibility", null);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, graphql_1.Query)(() => Media),
|
|
65
|
+
tslib_1.__metadata("design:type", Function),
|
|
66
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
67
|
+
tslib_1.__metadata("design:returntype", Object)
|
|
68
|
+
], DirectivesResolver.prototype, "latest", null);
|
|
69
|
+
DirectivesResolver = tslib_1.__decorate([
|
|
70
|
+
(0, graphql_1.Resolver)()
|
|
71
|
+
], DirectivesResolver);
|
|
72
|
+
let DirectivesAppModule = class DirectivesAppModule {
|
|
73
|
+
};
|
|
74
|
+
DirectivesAppModule = tslib_1.__decorate([
|
|
75
|
+
(0, common_1.Module)({
|
|
76
|
+
imports: [
|
|
77
|
+
graphql_1.GraphQLModule.forRoot({
|
|
78
|
+
driver: lib_1.ApolloFederationDriver,
|
|
79
|
+
autoSchemaFile: true,
|
|
80
|
+
buildSchemaOptions: {
|
|
81
|
+
orphanedTypes: [Article, Video],
|
|
82
|
+
},
|
|
83
|
+
plugins: [(0, disabled_1.ApolloServerPluginInlineTraceDisabled)()],
|
|
84
|
+
}),
|
|
85
|
+
],
|
|
86
|
+
providers: [DirectivesResolver],
|
|
87
|
+
})
|
|
88
|
+
], DirectivesAppModule);
|
|
89
|
+
describe('Code-first - directives on enums and unions (e2e)', () => {
|
|
90
|
+
let app;
|
|
91
|
+
let apolloClient;
|
|
92
|
+
beforeAll(async () => {
|
|
93
|
+
const moduleRef = await testing_1.Test.createTestingModule({
|
|
94
|
+
imports: [DirectivesAppModule],
|
|
95
|
+
}).compile();
|
|
96
|
+
app = moduleRef.createNestApplication();
|
|
97
|
+
await app.init();
|
|
98
|
+
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
99
|
+
apolloClient = graphqlModule.graphQlAdapter?.instance;
|
|
100
|
+
});
|
|
101
|
+
afterAll(async () => {
|
|
102
|
+
await app.close();
|
|
103
|
+
});
|
|
104
|
+
it('should emit enum, enum-value and union directives in the subgraph SDL', async () => {
|
|
105
|
+
const response = await apolloClient.executeOperation({
|
|
106
|
+
query: (0, graphql_tag_1.gql) `
|
|
107
|
+
{
|
|
108
|
+
_service {
|
|
109
|
+
sdl
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`,
|
|
113
|
+
});
|
|
114
|
+
(0, assert_1.default)(response.body.kind === 'single');
|
|
115
|
+
expect(response.body.singleResult.errors).toBeUndefined();
|
|
116
|
+
const sdl = response.body.singleResult.data._service.sdl;
|
|
117
|
+
expect(sdl).toMatch(/enum Visibility[^{]*@tag\(name: "visibility"\)/);
|
|
118
|
+
expect(sdl).toMatch(/PUBLIC @tag\(name: "public"\)/);
|
|
119
|
+
expect(sdl).not.toMatch(/PRIVATE[^\n]*@tag/);
|
|
120
|
+
expect(sdl).toMatch(/union Media[^=]*@tag\(name: "media"\)/);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federation-timestamp-scalar.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/federation-timestamp-scalar.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const disabled_1 = require("@apollo/server/plugin/disabled");
|
|
5
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
|
+
const common_1 = require("@nestjs/common");
|
|
7
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
8
|
+
const testing_1 = require("@nestjs/testing");
|
|
9
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
10
|
+
const lib_1 = require("../../lib");
|
|
11
|
+
let Reading = class Reading {
|
|
12
|
+
};
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], Reading.prototype, "id", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, graphql_1.Field)(),
|
|
19
|
+
tslib_1.__metadata("design:type", Date)
|
|
20
|
+
], Reading.prototype, "capturedAt", void 0);
|
|
21
|
+
Reading = tslib_1.__decorate([
|
|
22
|
+
(0, graphql_1.ObjectType)()
|
|
23
|
+
], Reading);
|
|
24
|
+
let ReadingResolver = class ReadingResolver {
|
|
25
|
+
reading() {
|
|
26
|
+
const r = new Reading();
|
|
27
|
+
r.id = '1';
|
|
28
|
+
r.capturedAt = new Date(0);
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, graphql_1.Query)(() => Reading),
|
|
34
|
+
tslib_1.__metadata("design:type", Function),
|
|
35
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
36
|
+
tslib_1.__metadata("design:returntype", Reading)
|
|
37
|
+
], ReadingResolver.prototype, "reading", null);
|
|
38
|
+
ReadingResolver = tslib_1.__decorate([
|
|
39
|
+
(0, graphql_1.Resolver)(() => Reading)
|
|
40
|
+
], ReadingResolver);
|
|
41
|
+
let TimestampFederationModule = class TimestampFederationModule {
|
|
42
|
+
};
|
|
43
|
+
TimestampFederationModule = tslib_1.__decorate([
|
|
44
|
+
(0, common_1.Module)({
|
|
45
|
+
imports: [
|
|
46
|
+
graphql_1.GraphQLModule.forRoot({
|
|
47
|
+
driver: lib_1.ApolloFederationDriver,
|
|
48
|
+
autoSchemaFile: true,
|
|
49
|
+
buildSchemaOptions: { dateScalarMode: 'timestamp' },
|
|
50
|
+
plugins: [(0, disabled_1.ApolloServerPluginInlineTraceDisabled)()],
|
|
51
|
+
}),
|
|
52
|
+
],
|
|
53
|
+
providers: [ReadingResolver],
|
|
54
|
+
})
|
|
55
|
+
], TimestampFederationModule);
|
|
56
|
+
describe('Federation - Timestamp scalar (dateScalarMode: "timestamp")', () => {
|
|
57
|
+
let app;
|
|
58
|
+
let apolloClient;
|
|
59
|
+
beforeAll(async () => {
|
|
60
|
+
const moduleRef = await testing_1.Test.createTestingModule({
|
|
61
|
+
imports: [TimestampFederationModule],
|
|
62
|
+
}).compile();
|
|
63
|
+
app = moduleRef.createNestApplication();
|
|
64
|
+
await app.init();
|
|
65
|
+
const graphqlModule = app.get(graphql_1.GraphQLModule);
|
|
66
|
+
apolloClient = graphqlModule.graphQlAdapter?.instance;
|
|
67
|
+
});
|
|
68
|
+
afterAll(async () => {
|
|
69
|
+
await app.close();
|
|
70
|
+
});
|
|
71
|
+
it('should serialize a Date field through the Timestamp scalar in the federated schema', async () => {
|
|
72
|
+
const response = await apolloClient.executeOperation({
|
|
73
|
+
query: (0, graphql_tag_1.gql) `
|
|
74
|
+
{
|
|
75
|
+
reading {
|
|
76
|
+
id
|
|
77
|
+
capturedAt
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`,
|
|
81
|
+
});
|
|
82
|
+
(0, assert_1.default)(response.body.kind === 'single');
|
|
83
|
+
expect(response.body.singleResult.errors).toBeUndefined();
|
|
84
|
+
const data = response.body.singleResult.data;
|
|
85
|
+
expect(data.reading.id).toBe('1');
|
|
86
|
+
expect(data.reading.capturedAt).toBe(0);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-definitions.spec.d.ts","sourceRoot":"","sources":["../../../../tests/e2e/generated-definitions.spec.ts"],"names":[],"mappings":""}
|