abiA
Denoβ€’3y agoβ€’
2 replies
abi

How do you get the path to a file relative to the module which is referencing it?

const GET_PROGRAM_QUERY = Deno.readFileSync("./GetProgram.gql");


GetProgram.gql is a file in the same directory as the calling module. The above doesn't work. Any ideas?
Was this page helpful?