如何将GraphQL文件转换为邮递员收藏?

问题描述

我想将GraphQL文件转换为Postman集合。我尝试使用JavaScript库来做到这一点(https://www.npmjs.com/package/graphql-to-postman)。

但是我遇到了以下错误:

未处理的拒绝(TypeError):无法设置属性 未定义的“ includeDeprecatedFields”

function convert() {
    var postmanJson = fileReader.result,fileDownload = require('js-file-download');
    const graphQlToPostman = require('graphql-to-postman');

    const collection = graphQlToPostman.convert(postmanJson);

    fileDownload(
        JSON.stringify(collection),'postman collection',);
}

这是我使用库的功能。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)