Skip to content

Commit 643e409

Browse files
committed
Remove explicit graphql header sets
1 parent 89f4278 commit 643e409

File tree

7 files changed

+0
-15
lines changed

7 files changed

+0
-15
lines changed

templates/android/library/src/main/java/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ class {{ service.name | caseUcfirst }} : Service {
114114
{% else %}
115115
val headers = mutableMapOf(
116116
{{ method.headers|map((header, key) => " \"#{key}\" to \"#{header}\"")|join(',\n')|raw }},
117-
{% if method.type == "graphql" %}
118-
"x-sdk-graphql" to true
119-
{% endif %}
120117
)
121118
{% if method.responseModel %}
122119
val converter: (Map<String, Any>) -> {{ _self.resultType(sdk.namespace, method) }} = {

templates/dart/base/requests/graphql.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
final Map<String, String> headers = {
88
{{ utils.map_headers(method.headers) }},
9-
"x-sdk-graphql: true,
109
}};
1110

1211
final res = await client.call(HttpMethod.{{ method.method | caseLower }}, path: path, params: params, headers: headers);

templates/deno/src/services/service.ts.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ export class {{ service.name | caseUcfirst }} extends Service {
9999
{% for key, header in method.headers %}
100100
'{{ key }}': '{{ header }}',
101101
{% endfor %}
102-
{% if method.type == 'graphql' %}
103-
'x-sdk-graphql': 'true',
104-
{% endif %}
105102
};
106103

107104
let id: string | undefined = undefined;

templates/flutter/base/requests/graphql.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
final Map<String, String> headers = {
88
{{ utils.map_headers(method.headers) }},
9-
"x-sdk-graphql: true,
109
}};
1110

1211
final res = await client.call(HttpMethod.{{ method.method | caseLower }}, path: path, params: params, headers: headers);

templates/kotlin/src/main/kotlin/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ class {{ service.name | caseUcfirst }} : Service {
9898
{% else %}
9999
val headers = mutableMapOf(
100100
{{ method.headers|map((header, key) => " \"#{key}\" to \"#{header}\"")|join(',\n')|raw }},
101-
{% if method.type == "graphql" %}
102-
"x-sdk-graphql" to true
103-
{% endif %}
104101
)
105102
{% if method.responseModel %}
106103
val converter: (Map<String, Any>) -> {{ utils.resultType(sdk.namespace, method) }} = {

templates/php/base/requests/graphql.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
{% for key, header in method.headers %}
66
'{{ key }}' => '{{ header }}',
77
{% endfor %}
8-
{% if method.type == 'graphql' %}
9-
'x-sdk-graphql': 'true',
10-
{% endif %}
118
], $params);

templates/swift/Sources/Services/Service.swift.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ open class {{ service.name | caseUcfirst }}: Service {
4141
{% else %}
4242
{% if 'multipart/form-data' in method.consumes %}var{% else %}let{% endif %} headers: [String: String] = [
4343
{{ method.headers|map((header, key) => " \"#{key}\": \"#{header}\"")|join(',\n')|raw }}{% if method.type == "graphql" %},
44-
"x-sdk-graphql": "true"
4544
{% endif %}
4645
]
4746
{% if method.responseModel %}

0 commit comments

Comments
 (0)