Skip to content

Commit

Permalink
Query formatting fixes
Browse files Browse the repository at this point in the history
Small fixes to the formatting of query strings
  • Loading branch information
ecrichlow committed Jan 15, 2023
1 parent cc5fa66 commit 73d890e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public class IoGGQLManager: IoGDataManagerDelegate
var queryString = "query "
if let operation = operationName
{
queryString += "{ \(operation)"
queryString += "{\n\(operation)"
if let queryParameters = parameters
{
queryString += "(\(queryParameters))"
Expand Down Expand Up @@ -795,6 +795,10 @@ public class IoGGQLManager: IoGDataManagerDelegate
arrayDefinition += "\n"
}
}
else
{
arrayDefinition += "\n"
}
return arrayDefinition

}
Expand Down

0 comments on commit 73d890e

Please sign in to comment.