/nexus-plugin-prisma

Alternative for nexus-graphql/nexus-plugin-prisma

Primary LanguageTypeScript

@vadistic/nexus-plugin-prisma

My take on implementation of nexus-plugin-prisma for @nexus/schema

Why

The main difference is that codegen main source are @nexus/schema models (that are further enchanced by prisma types) - not the other way around (as in official plugin).

This allow:

  • really low grained control
  • input filter is exposed only if model field is exposed
  • multiple models backed by same prisma type

Status

Codegen is done - need runtime implementation

How it looks

See ./fixture