dagger
dagger copied to clipboard
🐞 Node.JS : Directory.withNewFile escape error
What is the issue?
It seems that the contents arguments of the Directory.withNewFile is not properly escaped
Log output
Syntax Error GraphQL request (2:14762) Expected Name, found : [...]
Steps to reproduce
const stringWithQuotes = "This string has quotes \""
const newFile = await client
.container()
.directory("/")
.withNewFile("myfile", stringWithQuotes)
.file("myfile").id()
Dagger version
dagger node 0.1.1
OS version
Linux 5.15