Skip to content

Commit d490fd8

Browse files
committed
Add branch support to get_graphql_schema
1 parent 0ca3ee4 commit d490fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/schema/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def get_graphql_schema(self, branch: str | None = None) -> str:
726726
The GraphQL schema as a string.
727727
"""
728728
branch = branch or self.client.default_branch
729-
url = f"{self.client.address}/schema.graphql"
729+
url = f"{self.client.address}/schema.graphql?branch={branch}"
730730

731731
response = self.client._get(url=url)
732732

0 commit comments

Comments
 (0)