codegen-for-async-graphql

codecov

Usage

```bash cargo codegen-for-async-graphql --schema {pathtoschema} --output {pathtooutput}

cargo codegen-for-async-graphql --schema ./schema.graphql --output src/models

```

```rust mod models;

use async_graphql::*;

use models::{ Mutation, Query, };

let datasource = DataSource {}; let schema = Schema::build(Query {}, Mutation {}, EmptySubscription) .registertype::() .data(datasource) .finish(); let res = schema.execute(query).await; let json = serdejson::tostringpretty(&async_graphql::http::GQLResponse(res)); json.unwrap() ```