Skip to content

Commit

Permalink
Escape quote literal
Browse files Browse the repository at this point in the history
  • Loading branch information
gimantha committed Nov 26, 2024
1 parent e82d633 commit ead624b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import io.ballerina.projects.plugins.SyntaxNodeAnalysisContext;
import io.ballerina.stdlib.graphql.commons.types.Schema;
import io.ballerina.stdlib.graphql.commons.types.TypeName;
import io.ballerina.stdlib.graphql.commons.utils.TypeUtils;
import io.ballerina.stdlib.graphql.compiler.CacheConfigContext;
import io.ballerina.stdlib.graphql.compiler.FinderContext;
import io.ballerina.stdlib.graphql.compiler.Utils;
Expand Down Expand Up @@ -1400,6 +1401,7 @@ private String getFieldPath(ResourceMethodSymbol methodSymbol) {
}

private String getCurrentFieldPath() {
return String.join(FIELD_PATH_SEPARATOR, this.currentFieldPath);
return String.join(FIELD_PATH_SEPARATOR,
this.currentFieldPath.stream().map(TypeUtils::removeEscapeCharacter).toList());
}
}

0 comments on commit ead624b

Please sign in to comment.