From efd15838aacb979cf5eb5758abbcb9b66ee118e9 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Thu, 9 Feb 2023 15:11:05 +0530 Subject: [PATCH] fix: fixed bug where gql imports were not working --- packages/bruno-electron/src/ipc/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/collection.js b/packages/bruno-electron/src/ipc/collection.js index 2f339e362..b82e56f28 100644 --- a/packages/bruno-electron/src/ipc/collection.js +++ b/packages/bruno-electron/src/ipc/collection.js @@ -307,7 +307,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection // Recursive function to parse the collection items and create files/folders const parseCollectionItems = (items = [], currentPath) => { items.forEach(item => { - if (item.type === 'http-request') { + if (['http-request', 'graphql-request'].includes(item.type)) { const content = jsonToBru(item); const filePath = path.join(currentPath, `${item.name}.bru`); fs.writeFileSync(filePath, content);