A GraphQL Codegen that outputs a TypeScript SDK.
yarn add b-gsdk --dev
- Create
./b-gsdk/config.js
:
/**
* @type {import('b-gsdk').BGsdkConfig}
*/
module.exports = {
endpoint: "",
headers: {}
}
- Run generator:
yarn b-gsdk generate
- Create
./custom-dir/config.js
. - Run generator with
--dir
argument:
yarn b-gsdk generate --dir custom-dir