├── .babelrc ├── .env.example ├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── auto-merge.yml │ └── test.yml ├── .gitignore ├── .webpack └── bundle.js ├── README.md ├── babel.config.js ├── jest.config.js ├── package.json ├── schema.graphql ├── scripts └── updateSchema.js ├── src ├── config.ts ├── database │ └── database.ts ├── graphql │ ├── connectionDefinitions.ts │ ├── createLoader.ts │ ├── debugConsole.ts │ ├── index.ts │ ├── loaderRegister.ts │ └── withConnectionCursor.ts ├── server.js ├── server │ ├── __tests__ │ │ ├── __snapshots__ │ │ │ └── app.spec.ts.snap │ │ └── app.spec.ts │ ├── app.ts │ ├── auth.ts │ ├── config.ts │ ├── getContext.ts │ ├── getUser.ts │ ├── models │ │ └── index.js │ ├── modules │ │ ├── auth │ │ │ └── mutations │ │ │ │ ├── ChangePasswordMutation.ts │ │ │ │ ├── LoginEmailMutation.ts │ │ │ │ ├── UserRegisterEmailByEmailMutation.ts │ │ │ │ ├── __tests__ │ │ │ │ ├── AuthRegisterEmail.spec.ts │ │ │ │ └── __snapshots__ │ │ │ │ │ └── AuthRegisterEmail.spec.ts.snap │ │ │ │ └── index.ts │ │ ├── node │ │ │ └── typeRegister.ts │ │ ├── team │ │ │ ├── TeamLoader.ts │ │ │ ├── TeamModel.ts │ │ │ ├── TeamType.ts │ │ │ ├── __tests__ │ │ │ │ ├── TeamNodeQueries.spec.ts │ │ │ │ └── TeamQueries.spec.ts │ │ │ └── fixture │ │ │ │ └── createTeam.ts │ │ └── user │ │ │ ├── UserLoader.ts │ │ │ ├── UserModel.ts │ │ │ ├── UserType.ts │ │ │ ├── __tests__ │ │ │ ├── UserNodeQueries.spec.ts │ │ │ └── UserQueries.spec.ts │ │ │ └── fixture │ │ │ └── createUser.ts │ ├── schema.ts │ └── types │ │ ├── MutationType.ts │ │ └── QueryType.ts └── shared │ ├── index.js │ ├── logger.config.js │ ├── logger.js │ └── server.config.js ├── test ├── babel-transformer.js ├── clearDatabase.ts ├── connectMongoose.ts ├── counters.ts ├── deepPartial.ts ├── disconnectMongoose.ts ├── environment │ └── mongodb.js ├── getOrCreate.ts ├── index.ts ├── sanitizeTestObject.ts ├── setupFiles.js └── setupTestFramework.js ├── tsconfig.json ├── webpack.config.js ├── webpack ├── ReloadServerPlugin.js └── webpack.config.js ├── webpackx.ts └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.babelrc -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # application 2 | PORT=9001 3 | NODE_ENV=development 4 | 5 | MONGO_URI=mongodb://localhost/rbaf 6 | JWT_SECRET=jwt_secret -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/auto-merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.github/workflows/auto-merge.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | .env 4 | build 5 | 6 | junit.xml -------------------------------------------------------------------------------- /.webpack/bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/.webpack/bundle.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/babel.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/package.json -------------------------------------------------------------------------------- /schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/schema.graphql -------------------------------------------------------------------------------- /scripts/updateSchema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/scripts/updateSchema.js -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/database/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/database/database.ts -------------------------------------------------------------------------------- /src/graphql/connectionDefinitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/connectionDefinitions.ts -------------------------------------------------------------------------------- /src/graphql/createLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/createLoader.ts -------------------------------------------------------------------------------- /src/graphql/debugConsole.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/debugConsole.ts -------------------------------------------------------------------------------- /src/graphql/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/index.ts -------------------------------------------------------------------------------- /src/graphql/loaderRegister.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/loaderRegister.ts -------------------------------------------------------------------------------- /src/graphql/withConnectionCursor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/graphql/withConnectionCursor.ts -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server.js -------------------------------------------------------------------------------- /src/server/__tests__/__snapshots__/app.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/__tests__/__snapshots__/app.spec.ts.snap -------------------------------------------------------------------------------- /src/server/__tests__/app.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/__tests__/app.spec.ts -------------------------------------------------------------------------------- /src/server/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/app.ts -------------------------------------------------------------------------------- /src/server/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/auth.ts -------------------------------------------------------------------------------- /src/server/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/config.ts -------------------------------------------------------------------------------- /src/server/getContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/getContext.ts -------------------------------------------------------------------------------- /src/server/getUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/getUser.ts -------------------------------------------------------------------------------- /src/server/models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/models/index.js -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/ChangePasswordMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/ChangePasswordMutation.ts -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/LoginEmailMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/LoginEmailMutation.ts -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/UserRegisterEmailByEmailMutation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/UserRegisterEmailByEmailMutation.ts -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/__tests__/AuthRegisterEmail.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/__tests__/AuthRegisterEmail.spec.ts -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/__tests__/__snapshots__/AuthRegisterEmail.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/__tests__/__snapshots__/AuthRegisterEmail.spec.ts.snap -------------------------------------------------------------------------------- /src/server/modules/auth/mutations/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/auth/mutations/index.ts -------------------------------------------------------------------------------- /src/server/modules/node/typeRegister.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/node/typeRegister.ts -------------------------------------------------------------------------------- /src/server/modules/team/TeamLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/TeamLoader.ts -------------------------------------------------------------------------------- /src/server/modules/team/TeamModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/TeamModel.ts -------------------------------------------------------------------------------- /src/server/modules/team/TeamType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/TeamType.ts -------------------------------------------------------------------------------- /src/server/modules/team/__tests__/TeamNodeQueries.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/__tests__/TeamNodeQueries.spec.ts -------------------------------------------------------------------------------- /src/server/modules/team/__tests__/TeamQueries.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/__tests__/TeamQueries.spec.ts -------------------------------------------------------------------------------- /src/server/modules/team/fixture/createTeam.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/team/fixture/createTeam.ts -------------------------------------------------------------------------------- /src/server/modules/user/UserLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/UserLoader.ts -------------------------------------------------------------------------------- /src/server/modules/user/UserModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/UserModel.ts -------------------------------------------------------------------------------- /src/server/modules/user/UserType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/UserType.ts -------------------------------------------------------------------------------- /src/server/modules/user/__tests__/UserNodeQueries.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/__tests__/UserNodeQueries.spec.ts -------------------------------------------------------------------------------- /src/server/modules/user/__tests__/UserQueries.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/__tests__/UserQueries.spec.ts -------------------------------------------------------------------------------- /src/server/modules/user/fixture/createUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/modules/user/fixture/createUser.ts -------------------------------------------------------------------------------- /src/server/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/schema.ts -------------------------------------------------------------------------------- /src/server/types/MutationType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/types/MutationType.ts -------------------------------------------------------------------------------- /src/server/types/QueryType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/server/types/QueryType.ts -------------------------------------------------------------------------------- /src/shared/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/shared/index.js -------------------------------------------------------------------------------- /src/shared/logger.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/shared/logger.config.js -------------------------------------------------------------------------------- /src/shared/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/shared/logger.js -------------------------------------------------------------------------------- /src/shared/server.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/src/shared/server.config.js -------------------------------------------------------------------------------- /test/babel-transformer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/babel-transformer.js -------------------------------------------------------------------------------- /test/clearDatabase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/clearDatabase.ts -------------------------------------------------------------------------------- /test/connectMongoose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/connectMongoose.ts -------------------------------------------------------------------------------- /test/counters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/counters.ts -------------------------------------------------------------------------------- /test/deepPartial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/deepPartial.ts -------------------------------------------------------------------------------- /test/disconnectMongoose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/disconnectMongoose.ts -------------------------------------------------------------------------------- /test/environment/mongodb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/environment/mongodb.js -------------------------------------------------------------------------------- /test/getOrCreate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/getOrCreate.ts -------------------------------------------------------------------------------- /test/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/index.ts -------------------------------------------------------------------------------- /test/sanitizeTestObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/sanitizeTestObject.ts -------------------------------------------------------------------------------- /test/setupFiles.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/setupTestFramework.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/test/setupTestFramework.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/webpack.config.js -------------------------------------------------------------------------------- /webpack/ReloadServerPlugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/webpack/ReloadServerPlugin.js -------------------------------------------------------------------------------- /webpack/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/webpack/webpack.config.js -------------------------------------------------------------------------------- /webpackx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/webpackx.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daniloab/rbaf-graphql-api/HEAD/yarn.lock --------------------------------------------------------------------------------