Skip to content

Commit

Permalink
Fix qlkube
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaNarra committed Nov 11, 2024
1 parent 5258f74 commit 1238335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlkube/src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const { wrappers } = require('./wrappers');
const fs = require('fs');

exports.createSchema = async (oas, kubeApiUrl, token) => {
let baseSchema = await oasToGraphQlSchema(oas, kubeApiUrl, token);
let baseSchema = (await oasToGraphQlSchema(oas, kubeApiUrl, token)).schema;

try {
wrappers.forEach(wtype => {
baseSchema = decorateBaseSchema(
wtype['type'],
wtype['fieldWrapper'],
baseSchema.schema,
baseSchema,
wtype['nameWrapper'],
wtype['queryFieldsRequired']
);
Expand Down

0 comments on commit 1238335

Please sign in to comment.