Skip to content

Commit

Permalink
feat(cli): convert ASTNode to string since now providers return raw s…
Browse files Browse the repository at this point in the history
…chemas instead of strings
  • Loading branch information
m-pizarro committed Sep 29, 2022
1 parent 37f0c22 commit 55e6468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import fs from 'fs'
import path from 'path'
import { Opts, pluginMap, PluginType, ProviderData, StorageEngine } from '@cloudgraph/sdk'
import { range } from 'lodash'
import { print } from 'graphql'

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

0 comments on commit 55e6468

Please sign in to comment.