Skip to content

Commit 55e6468

Browse files
committed
feat(cli): convert ASTNode to string since now providers return raw schemas instead of strings
1 parent 37f0c22 commit 55e6468

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/commands/scan.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import fs from 'fs'
33
import path from 'path'
44
import { Opts, pluginMap, PluginType, ProviderData, StorageEngine } from '@cloudgraph/sdk'
55
import { range } from 'lodash'
6+
import { print } from 'graphql'
67

78
import Command from './base'
89
import { fileUtils } from '../utils'
@@ -217,7 +218,7 @@ export default class Scan extends Command {
217218
provider
218219
)}`
219220
)
220-
const providerSchema: string = providerClient.getSchema()
221+
const providerSchema: string = print(providerClient.getSchema())
221222
if (!providerSchema) {
222223
this.logger.warn(`No schema found for ${provider}, moving on`)
223224
continue // eslint-disable-line no-continue

0 commit comments

Comments
 (0)