graphtoaster-generate-resolver
For generating resolver files for GraphToaster framework.
import { generateResolver } from "graphtoaster-generate-resolver";
generateResolver({
force: false,
name: "get-users",
path: "./resolvers"
});
generateResolver({ force, name, path })
Generates a new resolver file.
Option | Type | Required | Default | Description |
---|---|---|---|---|
force | Boolean | No | false | Set to true to override the existing file. |
name | String | Yes | - | Resolver name. |
path | String | No | ./resolvers | Resolver directory. |