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

Type definitions from runtime objects #17

Closed
tgriesser opened this issue Jan 31, 2019 · 0 comments
Closed

Type definitions from runtime objects #17

tgriesser opened this issue Jan 31, 2019 · 0 comments
Labels
type/feat Add a new capability or enhance an existing one

Comments

@tgriesser
Copy link
Member

Had some new ideas for being able to specify the root type definitions with runtime objects, for those using the library for JS without robust TS objects to map to, or for simple cases.

typesFromRuntime({
  Node: { id: String },
  User: { id: String, name: String, birthday: Date },
  Date: Date
})
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