Skip to content

Commit ecd17f5

Browse files
committed
fix: prefix
1 parent 94c608c commit ecd17f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: graphene/types/schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def add_prefix_to_field_name(self, name):
425425
+ "_"
426426
+ name
427427
)
428-
return self.get_name(self.type_name_prefix + "_" + name)
428+
return self.get_name(self.type_name_prefix + name)
429429
return self.get_name(name)
430430

431431

Diff for: graphene/types/tests/test_schema.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_schema_type_name_prefix_camelcase_disabled():
238238
== dedent(
239239
"""
240240
type Query {
241-
MyPrefix_inner: MyPrefixMyType
241+
MyPrefixinner: MyPrefixMyType
242242
}
243243
244244
type MyPrefixMyType {
@@ -274,15 +274,15 @@ def test_schema_type_name_prefix_camelcase_disabled():
274274
}
275275
276276
type Mutation {
277-
MyPrefix_create_user(name: String): MyPrefixCreateUser
277+
MyPrefixcreate_user(name: String): MyPrefixCreateUser
278278
}
279279
280280
type MyPrefixCreateUser {
281281
name: String
282282
}
283283
284284
type Subscription {
285-
MyPrefix_count_to_ten: Int
285+
MyPrefixcount_to_ten: Int
286286
}
287287
"""
288288
).strip()

0 commit comments

Comments
 (0)