Skip to content

Commit 035c42b

Browse files
committed
feat: added log
1 parent 2356651 commit 035c42b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/composables/gql-query.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ export async function gqlQuery<T = any>(method: string, options: IGraphQLOptions
129129
authorization: `Bearer ${accessTokenState.value}`,
130130
};
131131

132+
if (config.log) {
133+
console.debug(requestHeaders);
134+
}
135+
132136
let data = null;
133137
let error = null;
134138
try {

0 commit comments

Comments
 (0)