Hey, Im looking into using nest with apollo and pr...
# orm-help
m
Hey, Im looking into using nest with apollo and prisma to create a GraphQL. I am using the generated prisma types to expose args for the user. I have a relationship similar to User -> [Client] (1:n). The generated types (user-create.input) exposes create, connect and createOrConnect input fields. Whats the best way for limiting the input type to only showing create, and not connect or createOrConnect? Do I just manually make a new type, or is there some good way of getting the type generated or keeping it in line with my prisma schema
n
Hey Marius 👋 In this case, you would need to manually create a new type. We have a Prisma Validator API which you could look at but that doesn’t exactly apply in this use case.
m
ahok, thats what I reckoned. would be nice to somehow get more control/config on this I thing, through “decorators” in the schema file - or even generating more types on the fly