[IDEA] farrow instrospect
instrospect the api since it has already known args type and response type
#22
Labels
farrow instrospect
instrospect the api since it has already known args type and response type
#22
then use
typescript compiler api
,farrow instrospect
generate json file:then
farrow generate --plugin=fetch
generate js client code:I know, this is a huge workload.
Eg the match schema
body: {a:Number,b:String,c:Boolean}
with constructor is naive.yup
is much better which can also give you the validated request type.I just came up with this idea. I don't really need it since I use graphql.
So I'm not going to contribute on this, I'm trying to translate
apollo-koa-server
toapollo-farrow-server
. I know there is 'farrow-graphql', but 'apollo' and 'graphql-code-generator' works grate.The text was updated successfully, but these errors were encountered: