Welcome to the forum and sorry about the confusion there.
I think what you’re seeing is a TypeScript mismatch. You can technically pass executeQuery() a string as the first param, but that’s meant for non-TS environments.
If you don’t want to use TypeScript for it, you can either just //@ts-ignore that line or use a .js/.jsx extension for that whole file. But if you’re using TypeScript anyway, getting the proper GraphQL types would save you a lot of headaches later since you can actually see when a query is properly constructed ahead of time.