├── .gitignore ├── .vscode └── launch.json ├── .yarn ├── plugins │ └── @yarnpkg │ │ └── plugin-interactive-tools.cjs └── releases │ └── yarn-3.1.1.cjs ├── .yarnrc.yml ├── README.md ├── article.md ├── codegen.yml ├── package.json ├── playground_queries.png ├── src ├── errors │ ├── errors.ts │ ├── index.ts │ └── wrapped-error.ts ├── index.ts ├── model │ ├── data │ │ ├── entity.data.ts │ │ └── user.data.ts │ ├── dataloader.ts │ ├── service.ts │ ├── throwing-api.ts │ └── types.ts ├── resolvers │ ├── resolvers.ts │ └── validation.ts └── typedefs.graphql ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs -------------------------------------------------------------------------------- /.yarn/releases/yarn-3.1.1.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/.yarn/releases/yarn-3.1.1.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/README.md -------------------------------------------------------------------------------- /article.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/article.md -------------------------------------------------------------------------------- /codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/codegen.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/package.json -------------------------------------------------------------------------------- /playground_queries.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/playground_queries.png -------------------------------------------------------------------------------- /src/errors/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/errors/errors.ts -------------------------------------------------------------------------------- /src/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/errors/index.ts -------------------------------------------------------------------------------- /src/errors/wrapped-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/errors/wrapped-error.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/model/data/entity.data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/data/entity.data.ts -------------------------------------------------------------------------------- /src/model/data/user.data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/data/user.data.ts -------------------------------------------------------------------------------- /src/model/dataloader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/dataloader.ts -------------------------------------------------------------------------------- /src/model/service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/service.ts -------------------------------------------------------------------------------- /src/model/throwing-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/throwing-api.ts -------------------------------------------------------------------------------- /src/model/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/model/types.ts -------------------------------------------------------------------------------- /src/resolvers/resolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/resolvers/resolvers.ts -------------------------------------------------------------------------------- /src/resolvers/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/resolvers/validation.ts -------------------------------------------------------------------------------- /src/typedefs.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/src/typedefs.graphql -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gthau/graphql-error-handling-with-union-and-fpts/HEAD/yarn.lock --------------------------------------------------------------------------------