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

Enum api that supports type builder api #865

Open
jasonkuhrt opened this issue Mar 16, 2021 · 0 comments
Open

Enum api that supports type builder api #865

jasonkuhrt opened this issue Mar 16, 2021 · 0 comments
Labels
type/feat Add a new capability or enhance an existing one

Comments

@jasonkuhrt
Copy link
Contributor

This is missing from the Nexus api:

enumType({
  name: 'Foobar',
  definition(t) {
    t.member('foobar')
  }
})

The reason this would be useful is for plugins that want to allow special enum features. For example Nexus Prisma could allow users to project enums from the DB level into the API level.

@jasonkuhrt jasonkuhrt added the type/feat Add a new capability or enhance an existing one label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feat Add a new capability or enhance an existing one
Projects
None yet
Development

No branches or pull requests

1 participant