@nestjs/apollo 13.3.0 → 13.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +11 -2
|
@@ -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":"abstract.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/other/abstract.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,qBACa,gBAAgB;IAE3B,eAAe,CAAS,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE;CAG5D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const recipes_args_1 = require("../recipes/dto/recipes.args");
|
|
7
|
+
const recipe_1 = require("../recipes/models/recipe");
|
|
8
|
+
let AbstractResolver = class AbstractResolver {
|
|
9
|
+
abstractRecipes(recipesArgs) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.AbstractResolver = AbstractResolver;
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, graphql_1.Query)((returns) => [recipe_1.Recipe]),
|
|
16
|
+
tslib_1.__param(0, (0, graphql_1.Args)()),
|
|
17
|
+
tslib_1.__metadata("design:type", Function),
|
|
18
|
+
tslib_1.__metadata("design:paramtypes", [recipes_args_1.RecipesArgs]),
|
|
19
|
+
tslib_1.__metadata("design:returntype", Array)
|
|
20
|
+
], AbstractResolver.prototype, "abstractRecipes", null);
|
|
21
|
+
exports.AbstractResolver = AbstractResolver = tslib_1.__decorate([
|
|
22
|
+
(0, graphql_1.Resolver)(() => recipe_1.Recipe, { isAbstract: true })
|
|
23
|
+
], AbstractResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-orphaned.type.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/other/sample-orphaned.type.ts"],"names":[],"mappings":"AAEA,qBACa,kBAAkB;IAE7B,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,IAAI,CAAC;IAEnB,IACI,aAAa,IAAI,MAAM,CAE1B;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SampleOrphanedType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let SampleOrphanedType = class SampleOrphanedType {
|
|
7
|
+
get averageRating() {
|
|
8
|
+
return 0.5;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
exports.SampleOrphanedType = SampleOrphanedType;
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], SampleOrphanedType.prototype, "id", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, graphql_1.Field)(),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], SampleOrphanedType.prototype, "title", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], SampleOrphanedType.prototype, "description", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.Field)(),
|
|
26
|
+
tslib_1.__metadata("design:type", Date)
|
|
27
|
+
], SampleOrphanedType.prototype, "creationDate", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, graphql_1.Field)(),
|
|
30
|
+
tslib_1.__metadata("design:type", Number),
|
|
31
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
32
|
+
], SampleOrphanedType.prototype, "averageRating", null);
|
|
33
|
+
exports.SampleOrphanedType = SampleOrphanedType = tslib_1.__decorate([
|
|
34
|
+
(0, graphql_1.ObjectType)({ description: 'orphaned type' })
|
|
35
|
+
], SampleOrphanedType);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomScalar } from '@nestjs/graphql';
|
|
2
|
+
export declare class SampleScalar implements CustomScalar<string, string> {
|
|
3
|
+
description: string;
|
|
4
|
+
parseValue(value: unknown): string;
|
|
5
|
+
serialize(obj: unknown): string;
|
|
6
|
+
parseLiteral(ast: any): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=sample-scalar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-scalar.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/other/sample-scalar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAU,MAAM,iBAAiB,CAAC;AAGvD,qBACa,YAAa,YAAW,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;IAC/D,WAAW,SAAqB;IAEhC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;IAOlC,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IAO/B,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM;CAQ/B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SampleScalar = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const graphql_2 = require("graphql");
|
|
7
|
+
let SampleScalar = class SampleScalar {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.description = 'A sample scalar';
|
|
10
|
+
}
|
|
11
|
+
parseValue(value) {
|
|
12
|
+
if (typeof value !== 'string') {
|
|
13
|
+
throw new Error(`Expected a string, but got ${value}.`);
|
|
14
|
+
}
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
serialize(obj) {
|
|
18
|
+
if (typeof obj !== 'string') {
|
|
19
|
+
throw new Error(`Expected a string, but got ${obj}.`);
|
|
20
|
+
}
|
|
21
|
+
return obj;
|
|
22
|
+
}
|
|
23
|
+
parseLiteral(ast) {
|
|
24
|
+
if (ast.kind === graphql_2.Kind.STRING) {
|
|
25
|
+
return ast.value;
|
|
26
|
+
}
|
|
27
|
+
throw new Error(`Expected value of kind 'STRING', but got kind '${ast.kind}'.`);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.SampleScalar = SampleScalar;
|
|
31
|
+
exports.SampleScalar = SampleScalar = tslib_1.__decorate([
|
|
32
|
+
(0, graphql_1.Scalar)('SampleScalar')
|
|
33
|
+
], SampleScalar);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-recipes-count.args.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/dto/filter-recipes-count.args.ts"],"names":[],"mappings":"AACA,qBACa,sBAAsB;IAEjC,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FilterRecipesCountArgs = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let FilterRecipesCountArgs = class FilterRecipesCountArgs {
|
|
7
|
+
};
|
|
8
|
+
exports.FilterRecipesCountArgs = FilterRecipesCountArgs;
|
|
9
|
+
tslib_1.__decorate([
|
|
10
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
12
|
+
], FilterRecipesCountArgs.prototype, "type", void 0);
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], FilterRecipesCountArgs.prototype, "status", void 0);
|
|
17
|
+
exports.FilterRecipesCountArgs = FilterRecipesCountArgs = tslib_1.__decorate([
|
|
18
|
+
(0, graphql_1.ArgsType)()
|
|
19
|
+
], FilterRecipesCountArgs);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-recipe.input.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/dto/new-recipe.input.ts"],"names":[],"mappings":"AAIA,qBACa,cAAc;IAGzB,KAAK,EAAE,MAAM,CAAC;IAId,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NewRecipeInput = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const class_transformer_1 = require("class-transformer");
|
|
7
|
+
const class_validator_1 = require("class-validator");
|
|
8
|
+
let NewRecipeInput = class NewRecipeInput {
|
|
9
|
+
};
|
|
10
|
+
exports.NewRecipeInput = NewRecipeInput;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, graphql_1.Field)({ description: 'recipe title' }),
|
|
13
|
+
(0, class_validator_1.MaxLength)(30),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], NewRecipeInput.prototype, "title", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
18
|
+
(0, class_validator_1.Length)(30, 255),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], NewRecipeInput.prototype, "description", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, graphql_1.Field)({ nullable: false, defaultValue: 'published' }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], NewRecipeInput.prototype, "status", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, class_transformer_1.Type)(() => String),
|
|
27
|
+
(0, graphql_1.Field)((type) => [String]),
|
|
28
|
+
tslib_1.__metadata("design:type", Array)
|
|
29
|
+
], NewRecipeInput.prototype, "ingredients", void 0);
|
|
30
|
+
exports.NewRecipeInput = NewRecipeInput = tslib_1.__decorate([
|
|
31
|
+
(0, graphql_1.InputType)({ description: 'new recipe input' })
|
|
32
|
+
], NewRecipeInput);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.args.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/dto/recipes.args.ts"],"names":[],"mappings":"AAEA,qBACa,WAAW;IAMtB,IAAI,EAAE,MAAM,CAAK;IAKjB,IAAI,EAAE,MAAM,CAAM;CACnB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecipesArgs = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const class_validator_1 = require("class-validator");
|
|
7
|
+
let RecipesArgs = class RecipesArgs {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.skip = 0;
|
|
10
|
+
this.take = 25;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.RecipesArgs = RecipesArgs;
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, graphql_1.Field)((type) => graphql_1.Int, {
|
|
16
|
+
description: 'number of items to skip',
|
|
17
|
+
nullable: true,
|
|
18
|
+
}),
|
|
19
|
+
(0, class_validator_1.Min)(0),
|
|
20
|
+
tslib_1.__metadata("design:type", Number)
|
|
21
|
+
], RecipesArgs.prototype, "skip", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, graphql_1.Field)((type) => graphql_1.Int, { nullable: true }),
|
|
24
|
+
(0, class_validator_1.Min)(1),
|
|
25
|
+
(0, class_validator_1.Max)(50),
|
|
26
|
+
tslib_1.__metadata("design:type", Number)
|
|
27
|
+
], RecipesArgs.prototype, "take", void 0);
|
|
28
|
+
exports.RecipesArgs = RecipesArgs = tslib_1.__decorate([
|
|
29
|
+
(0, graphql_1.ArgsType)()
|
|
30
|
+
], RecipesArgs);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredients.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/recipes/ingredients.resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBACa,mBAAmB;IAE9B,EAAE,CAAW,EAAE,EAAE,EAAE,EAAE,UAAU,GAAG,MAAM;IAKxC,IAAI,CAAW,EAAE,IAAI,EAAE,EAAE,UAAU,GAAG,MAAM;IAK5C,QAAQ,CAAW,EAAE,IAAI,EAAE,EAAE,UAAU,GAAG,MAAM;CAGjD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IngredientsResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const ingredient_1 = require("./models/ingredient");
|
|
7
|
+
let IngredientsResolver = class IngredientsResolver {
|
|
8
|
+
id({ id }) {
|
|
9
|
+
return id;
|
|
10
|
+
}
|
|
11
|
+
name({ name }) {
|
|
12
|
+
return name;
|
|
13
|
+
}
|
|
14
|
+
baseName({ name }) {
|
|
15
|
+
return name;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.IngredientsResolver = IngredientsResolver;
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, graphql_1.ResolveField)(() => graphql_1.ID),
|
|
21
|
+
tslib_1.__param(0, (0, graphql_1.Parent)()),
|
|
22
|
+
tslib_1.__metadata("design:type", Function),
|
|
23
|
+
tslib_1.__metadata("design:paramtypes", [ingredient_1.Ingredient]),
|
|
24
|
+
tslib_1.__metadata("design:returntype", String)
|
|
25
|
+
], IngredientsResolver.prototype, "id", null);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, graphql_1.ResolveField)(),
|
|
28
|
+
tslib_1.__param(0, (0, graphql_1.Parent)()),
|
|
29
|
+
tslib_1.__metadata("design:type", Function),
|
|
30
|
+
tslib_1.__metadata("design:paramtypes", [ingredient_1.Ingredient]),
|
|
31
|
+
tslib_1.__metadata("design:returntype", String)
|
|
32
|
+
], IngredientsResolver.prototype, "name", null);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, graphql_1.ResolveField)(),
|
|
35
|
+
tslib_1.__param(0, (0, graphql_1.Parent)()),
|
|
36
|
+
tslib_1.__metadata("design:type", Function),
|
|
37
|
+
tslib_1.__metadata("design:paramtypes", [ingredient_1.Ingredient]),
|
|
38
|
+
tslib_1.__metadata("design:returntype", String)
|
|
39
|
+
], IngredientsResolver.prototype, "baseName", null);
|
|
40
|
+
exports.IngredientsResolver = IngredientsResolver = tslib_1.__decorate([
|
|
41
|
+
(0, graphql_1.Resolver)((of) => ingredient_1.Ingredient)
|
|
42
|
+
], IngredientsResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"irecipes.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/recipes/irecipes.resolver.ts"],"names":[],"mappings":"AAGA,qBACa,gBAAgB;IAE3B,iBAAiB,CACsC,GAAG,EAAE,MAAM;CAInE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IRecipesResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const recipe_1 = require("./models/recipe");
|
|
7
|
+
let IRecipesResolver = class IRecipesResolver {
|
|
8
|
+
interfaceResolver(arg) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.IRecipesResolver = IRecipesResolver;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.ResolveField)('interfaceResolver', () => Boolean),
|
|
15
|
+
tslib_1.__param(0, (0, graphql_1.Args)('arg', { type: () => Number, nullable: true })),
|
|
16
|
+
tslib_1.__metadata("design:type", Function),
|
|
17
|
+
tslib_1.__metadata("design:paramtypes", [Number]),
|
|
18
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
19
|
+
], IRecipesResolver.prototype, "interfaceResolver", null);
|
|
20
|
+
exports.IRecipesResolver = IRecipesResolver = tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Resolver)((of) => recipe_1.IRecipe)
|
|
22
|
+
], IRecipesResolver);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/models/category.ts"],"names":[],"mappings":"AACA,qBACa,QAAQ;IAEnB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,EAAE,CAAC;gBAEH,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC;CAGxC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Category = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let Category = class Category {
|
|
7
|
+
constructor(category) {
|
|
8
|
+
Object.assign(this, category);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
exports.Category = Category;
|
|
12
|
+
tslib_1.__decorate([
|
|
13
|
+
(0, graphql_1.Field)((type) => String),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], Category.prototype, "name", void 0);
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, graphql_1.Field)((type) => String, { defaultValue: 'default value' }),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], Category.prototype, "description", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Field)((type) => [String], { defaultValue: [] }),
|
|
22
|
+
tslib_1.__metadata("design:type", Array)
|
|
23
|
+
], Category.prototype, "tags", void 0);
|
|
24
|
+
exports.Category = Category = tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.ObjectType)(),
|
|
26
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
27
|
+
], Category);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare class NodeIngredient {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
declare class BaseIngredient extends NodeIngredient {
|
|
5
|
+
baseName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Ingredient extends BaseIngredient {
|
|
8
|
+
name: string;
|
|
9
|
+
constructor(ingredient: Partial<Ingredient>);
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ingredient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredient.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/models/ingredient.ts"],"names":[],"mappings":"AAEA,cAAM,cAAc;IAOlB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,cACM,cAAe,SAAQ,cAAc;IAOzC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qBACa,UAAW,SAAQ,cAAc;IAO5C,IAAI,EAAE,MAAM,CAAC;gBAED,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC;CAI5C"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Ingredient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
class NodeIngredient {
|
|
7
|
+
}
|
|
8
|
+
tslib_1.__decorate([
|
|
9
|
+
(0, graphql_1.Field)((type) => graphql_1.ID, {
|
|
10
|
+
defaultValue: 'Not applied',
|
|
11
|
+
description: 'Not applied',
|
|
12
|
+
deprecationReason: 'Not applied',
|
|
13
|
+
}),
|
|
14
|
+
tslib_1.__metadata("design:type", String)
|
|
15
|
+
], NodeIngredient.prototype, "id", void 0);
|
|
16
|
+
let BaseIngredient = class BaseIngredient extends NodeIngredient {
|
|
17
|
+
};
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, graphql_1.Field)({
|
|
20
|
+
defaultValue: 'default',
|
|
21
|
+
deprecationReason: 'is deprecated',
|
|
22
|
+
description: 'ingredient base name',
|
|
23
|
+
nullable: true,
|
|
24
|
+
}),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], BaseIngredient.prototype, "baseName", void 0);
|
|
27
|
+
BaseIngredient = tslib_1.__decorate([
|
|
28
|
+
(0, graphql_1.ObjectType)({ isAbstract: true })
|
|
29
|
+
], BaseIngredient);
|
|
30
|
+
let Ingredient = class Ingredient extends BaseIngredient {
|
|
31
|
+
constructor(ingredient) {
|
|
32
|
+
super();
|
|
33
|
+
Object.assign(this, ingredient);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.Ingredient = Ingredient;
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, graphql_1.Field)({
|
|
39
|
+
defaultValue: 'default',
|
|
40
|
+
deprecationReason: 'is deprecated',
|
|
41
|
+
description: 'ingredient name',
|
|
42
|
+
nullable: true,
|
|
43
|
+
}),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], Ingredient.prototype, "name", void 0);
|
|
46
|
+
exports.Ingredient = Ingredient = tslib_1.__decorate([
|
|
47
|
+
(0, graphql_1.ObjectType)(),
|
|
48
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
49
|
+
], Ingredient);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { METADATA_FACTORY_NAME } from '@nestjs/graphql/plugin/plugin-constants';
|
|
2
|
+
export declare abstract class Base {
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export declare abstract class IRecipe extends Base {
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class Recipe extends IRecipe {
|
|
9
|
+
description?: string;
|
|
10
|
+
creationDate: Date;
|
|
11
|
+
get averageRating(): number;
|
|
12
|
+
constructor(recipe: Partial<Recipe>);
|
|
13
|
+
static [METADATA_FACTORY_NAME](): {
|
|
14
|
+
lastRate: {
|
|
15
|
+
nullable: boolean;
|
|
16
|
+
type: () => NumberConstructor;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
tags: {
|
|
20
|
+
nullable: boolean;
|
|
21
|
+
type: () => StringConstructor[];
|
|
22
|
+
};
|
|
23
|
+
averageRating: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
creationDate: {};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../../../../tests/code-first/recipes/models/recipe.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,8BACsB,IAAI;IAExB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,8BAMsB,OAAQ,SAAQ,IAAI;IAExC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,MAAO,SAAQ,OAAO;IAUjC,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,IAAI,CAAC;IAEnB,IACI,aAAa,IAAI,MAAM,CAE1B;gBAEW,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;IAKnC,MAAM,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;;CAc/B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
const plugin_constants_1 = require("@nestjs/graphql/plugin/plugin-constants");
|
|
7
|
+
let Base = class Base {
|
|
8
|
+
};
|
|
9
|
+
exports.Base = Base;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, graphql_1.Field)((type) => graphql_1.ID),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], Base.prototype, "id", void 0);
|
|
14
|
+
exports.Base = Base = tslib_1.__decorate([
|
|
15
|
+
(0, graphql_1.InterfaceType)()
|
|
16
|
+
], Base);
|
|
17
|
+
let IRecipe = class IRecipe extends Base {
|
|
18
|
+
};
|
|
19
|
+
exports.IRecipe = IRecipe;
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, graphql_1.Field)(),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], IRecipe.prototype, "title", void 0);
|
|
24
|
+
exports.IRecipe = IRecipe = tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.InterfaceType)({
|
|
26
|
+
description: 'example interface',
|
|
27
|
+
resolveType: (value) => {
|
|
28
|
+
return Recipe;
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
], IRecipe);
|
|
32
|
+
let Recipe = class Recipe extends IRecipe {
|
|
33
|
+
get averageRating() {
|
|
34
|
+
return 0.5;
|
|
35
|
+
}
|
|
36
|
+
constructor(recipe) {
|
|
37
|
+
super();
|
|
38
|
+
Object.assign(this, recipe);
|
|
39
|
+
}
|
|
40
|
+
static [plugin_constants_1.METADATA_FACTORY_NAME]() {
|
|
41
|
+
return {
|
|
42
|
+
lastRate: {
|
|
43
|
+
nullable: true,
|
|
44
|
+
type: () => Number,
|
|
45
|
+
description: 'last rate description',
|
|
46
|
+
},
|
|
47
|
+
tags: { nullable: false, type: () => [String] },
|
|
48
|
+
averageRating: {
|
|
49
|
+
description: "The recipe's average rating",
|
|
50
|
+
},
|
|
51
|
+
creationDate: {},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.Recipe = Recipe;
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, graphql_1.Field)({
|
|
58
|
+
nullable: true,
|
|
59
|
+
middleware: [
|
|
60
|
+
async (ctx, next) => {
|
|
61
|
+
const value = await next();
|
|
62
|
+
return value ? 'Description: ' + value : 'Placeholder';
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
}),
|
|
66
|
+
tslib_1.__metadata("design:type", String)
|
|
67
|
+
], Recipe.prototype, "description", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, graphql_1.Field)(),
|
|
70
|
+
tslib_1.__metadata("design:type", Date)
|
|
71
|
+
], Recipe.prototype, "creationDate", void 0);
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, graphql_1.Field)(),
|
|
74
|
+
tslib_1.__metadata("design:type", Number),
|
|
75
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
76
|
+
], Recipe.prototype, "averageRating", null);
|
|
77
|
+
exports.Recipe = Recipe = tslib_1.__decorate([
|
|
78
|
+
(0, graphql_1.ObjectType)({ implements: IRecipe, description: 'recipe object type' }),
|
|
79
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
80
|
+
], Recipe);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.module.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/recipes/recipes.module.ts"],"names":[],"mappings":"AASA,qBAaa,aAAa;CAAG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecipesModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const core_1 = require("@nestjs/core");
|
|
7
|
+
const unauthorized_filter_1 = require("../common/filters/unauthorized.filter");
|
|
8
|
+
const date_scalar_1 = require("../common/scalars/date.scalar");
|
|
9
|
+
const ingredients_resolver_1 = require("./ingredients.resolver");
|
|
10
|
+
const irecipes_resolver_1 = require("./irecipes.resolver");
|
|
11
|
+
const recipes_resolver_1 = require("./recipes.resolver");
|
|
12
|
+
const recipes_service_1 = require("./recipes.service");
|
|
13
|
+
let RecipesModule = class RecipesModule {
|
|
14
|
+
};
|
|
15
|
+
exports.RecipesModule = RecipesModule;
|
|
16
|
+
exports.RecipesModule = RecipesModule = tslib_1.__decorate([
|
|
17
|
+
(0, common_1.Module)({
|
|
18
|
+
providers: [
|
|
19
|
+
ingredients_resolver_1.IngredientsResolver,
|
|
20
|
+
recipes_resolver_1.RecipesResolver,
|
|
21
|
+
irecipes_resolver_1.IRecipesResolver,
|
|
22
|
+
recipes_service_1.RecipesService,
|
|
23
|
+
date_scalar_1.DateScalar,
|
|
24
|
+
{
|
|
25
|
+
provide: core_1.APP_FILTER,
|
|
26
|
+
useClass: unauthorized_filter_1.UnauthorizedFilter,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
})
|
|
30
|
+
], RecipesModule);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FilterRecipesCountArgs } from './dto/filter-recipes-count.args';
|
|
2
|
+
import { NewRecipeInput } from './dto/new-recipe.input';
|
|
3
|
+
import { RecipesArgs } from './dto/recipes.args';
|
|
4
|
+
import { Category } from './models/category';
|
|
5
|
+
import { Ingredient } from './models/ingredient';
|
|
6
|
+
import { IRecipe, Recipe } from './models/recipe';
|
|
7
|
+
import { RecipesService } from './recipes.service';
|
|
8
|
+
import { SearchResultUnion } from './unions/search-result.union';
|
|
9
|
+
export declare class RecipesResolver {
|
|
10
|
+
private readonly recipesService;
|
|
11
|
+
constructor(recipesService: RecipesService);
|
|
12
|
+
recipe(id: string): Promise<IRecipe>;
|
|
13
|
+
search(): Promise<Array<typeof SearchResultUnion>>;
|
|
14
|
+
categories(): Category[];
|
|
15
|
+
recipes(recipesArgs: RecipesArgs): Promise<Recipe[]>;
|
|
16
|
+
addRecipe(newRecipeData: NewRecipeInput): Promise<Recipe>;
|
|
17
|
+
getIngredients(root: any): Ingredient[];
|
|
18
|
+
count(filters: FilterRecipesCountArgs): number;
|
|
19
|
+
rating(): number;
|
|
20
|
+
removeRecipe(id: string): Promise<boolean>;
|
|
21
|
+
recipeAdded(): import("graphql-subscriptions/dist/pubsub-async-iterable-iterator").PubSubAsyncIterableIterator<unknown>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=recipes.resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.resolver.d.ts","sourceRoot":"","sources":["../../../../../tests/code-first/recipes/recipes.resolver.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,qBACa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAIrD,MAAM,CAMV,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,OAAO,CAAC;IASb,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAUxD,UAAU;IAKV,OAAO,CAAS,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAKtD,SAAS,CACU,aAAa,EAAE,cAAc,GACnD,OAAO,CAAC,MAAM,CAAC;IAOlB,cAAc,CAAW,IAAI,KAAA;IAK7B,KAAK,CAAS,OAAO,EAAE,sBAAsB;IAK7C,MAAM,IAAI,MAAM;IAKV,YAAY,CAAa,EAAE,EAAE,MAAM;IAOzC,WAAW;CAGZ"}
|