diff --git a/src/helpers/get-connection-info.ts b/src/helpers/get-connection-info.ts index 65a739c..38bbd07 100644 --- a/src/helpers/get-connection-info.ts +++ b/src/helpers/get-connection-info.ts @@ -9,7 +9,12 @@ export interface ConnectionInfo { } export default function getConnectionInfo(): ConnectionInfo { - const connectionInfoPath = untildify('~/Library/Application Support/Local/graphql-connection-info.json') + let connectionInfoPath; + if ( process.platform == 'darwin' ) { + connectionInfoPath = untildify('~/Library/Application Support/Local/graphql-connection-info.json'); + } else { + connectionInfoPath = process.env.APPDATA + '\\Local\\graphql-connection-info.json'; + } try { return fs.readJsonSync(connectionInfoPath)