Skip to content

Commit

Permalink
feat: 🎸 handle inline fragment for analytics queries (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianlega authored Jan 2, 2024
1 parent edff909 commit 6f189e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kili/adapters/kili_api_gateway/helpers/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def fragment_builder(fields: ListOrTuple[str]) -> str:
fragment = ""

# split a field and its subfields (e.g. "roles.user.id" -> ["roles", "user.id"])
subfields = [field.split(".", 1) for field in fields if "." in field]
subfields = [field.split(".", 1) for field in fields if "." in field and "..." not in field]

if subfields:
# get the root fields (e.g. "roles" in "roles.user.id")
Expand Down

0 comments on commit 6f189e2

Please sign in to comment.