Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to clone types and inputs #352

Open
pantharshit00 opened this issue Aug 15, 2019 · 1 comment
Open

Ability to clone types and inputs #352

pantharshit00 opened this issue Aug 15, 2019 · 1 comment
Labels
scope/projecting Exposing Prisma Models in the GQL API type/feat Add a new capability or enhance an existing one

Comments

@pantharshit00
Copy link
Contributor

Right now there is no way of cloning type so that we can clone them to add additional fields to them and use them separately.

An example implementation can look as follows:

const UserWithFeatureWhereInput = prismaCloneInputType({
	from: "UserWhereInput",
    name: "UserWithFeatureWhereInput",
    fields: ["*"],
    defination(t){// custom fields}
})
@codingfunwoody
Copy link

agree

@jasonkuhrt jasonkuhrt added the type/feat Add a new capability or enhance an existing one label Sep 3, 2019
@jasonkuhrt jasonkuhrt added scope/remixing scope/projecting Exposing Prisma Models in the GQL API and removed scope/remixing labels Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/projecting Exposing Prisma Models in the GQL API type/feat Add a new capability or enhance an existing one
Projects
None yet
Development

No branches or pull requests

3 participants