Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting raw queries #1

Open
vladinator1000 opened this issue Jan 31, 2022 · 2 comments
Open

Supporting raw queries #1

vladinator1000 opened this issue Jan 31, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@vladinator1000
Copy link
Contributor

vladinator1000 commented Jan 31, 2022

Hi there, I'm a big fan of your work, it enables a nice local development experience for serverless environments like Cloudflare Workers. I'm actually using it for an open-source template: https://github.com/vladinator1000/cloudflare-workers-ts-graphql

I noticed there is a lack of support of raw queries, anything starting with $. Is there a way we can add that? It would be nice to have an escape hatch to use raw queries whenever you want to do something niche.

@jacksloan
Copy link
Owner

jacksloan commented Jan 31, 2022

Thank you for the suggestion. I hadn't considered raw queries but I'd like to add support for that now that you mention it. Do you have an idea of what you would expect that API to look like for raw queries (or any other special operations prefixed by the $ sign)? Would $queryRawUnsafe and $executeRawUnsafe be sufficient? Those would be the easiest to serialize as they are just raw strings.

@vladinator1000
Copy link
Contributor Author

I think those would be perfect. ❤️

@jacksloan jacksloan added the enhancement New feature or request label Jan 31, 2022
@jacksloan jacksloan self-assigned this Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants