1.0.2 • Published 6 years ago
yaku-sdk v1.0.2
- generete file, if you first generate file, you can write value, example is file
exampleFileGenerate.js
you can writelaunchesPast(limit: 1)
adjust schema qraphql. commandnode example/exampleFileGenerate.js
- generate schema. command
node example/exampleSchema.js
and change codeurl
. example :const result = await generateSchema.generateSchema({ url: `https://api.spacex.land/graphql/` });
- change code
launchesPast
andinsert_users
adjust with name your schema
and build typescript. npm run buildif (resultMethod === 'query') { return await sdk.launchesPast(resultQuery); } else if (resultMethod === 'mutation') { return await sdk.insert_users(resultQuery); }