decapi
decapi copied to clipboard
Create GraphQL API by decorating TypeScript classes
Hi @capaj! Thanks for forking and extending this! I'm trying to implement GraphQL with TypeORM, so far so good, the GraphQL part is working pretty nicely, but I am not...
field type and castTo should crash upon generating the schema if they get an interface type as input
``` @Field() edit(name: string) { this.name = name return this } ``` ``` Error: Class Function cannot be used as a resolve type because it is not an @ObjectType at...
currently even if we're extending an interface, we still have to specify `implementors` explicitly. It could be automatically added when a prototype is an interface type.
same as https://github.com/19majkel94/type-graphql/blob/master/examples/simple-subscriptions/resolver.ts we should support subscriptions.
It should be possible to run decapi in the browser-this would be ideal for building like a playground editor where a user can play with decapi without having to install...