Skip to content

Commit 05d9817

Browse files
committed
feat: drop base defs when make schema
1 parent 55ed537 commit 05d9817

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

gql/schema.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ def parse_from_file(file: Path):
115115
return type_defs
116116

117117

118-
base_type_defs = """
119-
type Query
120-
type Mutation
121-
"""
122-
123-
124118
def make_schema_from_path(
125119
path: str,
126120
assume_valid: bool = False,
@@ -135,7 +129,7 @@ def make_schema_from_path(
135129
if p.is_file():
136130
type_defs = parse_from_file(p)
137131
elif p.is_dir():
138-
type_defs = [base_type_defs]
132+
type_defs = []
139133
for file in p.glob('*.graphql'):
140134
type_defs.extend([parse_from_file(file)])
141135
else:

0 commit comments

Comments
 (0)