WellFail / prisma-nexus-graphql-mvc-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MVC and DDD architecture example using: Prisma, Nexus, GraphQL

asd

Project structure:

  • api.common - Basic entities of system

  • api.user.domain - MVC domain model

  • api.user.services - User service layer (business logic)

  • api.user.repository - User repository layer using prisma

  • api.user.mappers - Mappers for convert repo -> domain -> nexus

  • graphql.schema.user - Graphql schema definition using Nexus

TODO:

  • Error handling
  • Separate user services
  • Filtering
  • Pagination
  • Permissions

About


Languages

Language:TypeScript 97.0%Language:JavaScript 3.0%