Repository URL to install this package:
|
Version:
0.0.2 ▾
|
import asyncTransform from '../src/transform'
const body = `mutation RegisterGuest {\n registerGuest {\n responseCode\n type\n properties {\n state {\n statuscode\n starttime\n status\n }\n }\n cookies\n }\n}\n`
const codeFixture = `
r.loc.source = {
body: \`${body}\`,
name: "GraphQL request",
locationOffset: { line: 1, column: 1 }
}
`
async function go() {
const output = await asyncTransform(codeFixture)
console.log(output.code)
}
go()