Skip to content
Snippets Groups Projects
Commit 8c49783c authored by Alexander Rose's avatar Alexander Rose
Browse files

wip, graphql schema gen (currently broken)

parent fbfcedf3
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,20 @@ const path = require('path')
const basePath = path.join(__dirname, '..', '..', 'src', 'mol-model-props', 'rcsb', 'graphql')
generate({
args: [
schema: 'http://rest-dev.rcsb.org/graphql',
documents: [
path.join(basePath, 'symmetry.gql.ts')
],
schema: 'http://rest-experimental.rcsb.org/graphql',
template: 'graphql-codegen-typescript-template',
out: path.join(basePath),
skipSchema: true,
generates: {
[path.join(basePath, 'types.ts')]: {
plugins: ['time', 'typescript-common', 'typescript-client']
}
},
// template: 'graphql-codegen-typescript-template',
// out: path.join(basePath),
// skipSchema: true,
overwrite: true,
config: path.join(__dirname, 'codegen.json')
}, true).then(
console.log('done')
() => console.log('done')
).catch(e => console.error(e))
\ No newline at end of file
{
"flattenTypes": true,
"generatorConfig": {
"printTime": true,
"immutableTypes": true,
"resolvers": false
"immutableTypes": true
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment