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

Feature Request: Automatically detect column types from reflections #94

Open
davidsparkles opened this issue Jul 23, 2019 · 0 comments
Open

Comments

@davidsparkles
Copy link
Collaborator

davidsparkles commented Jul 23, 2019

Package

  • db

Description / Use Case for a Feature

Currently, one has to define the type for postgres, graphql and typescript explicitly like @Column({ type: "integer", gqlType: "Int" }) public count: number;.

Basic types like, number string boolean or any might be detected automatically using reflections and the postgres and graphql types will be set respectively. In contrasts, if the types do not match up, e.g. @Column({ type: "boolean", gqlType: "Int" }) public name: string;,, warnings or errors can be logged or thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant