apollo-tooling
apollo-tooling copied to clipboard
apollo-language-server: allow code generation from typescript generic graphql tag
Allow using Typescript code generation with a generic graph tag.
Example:
const myQuery = () => graphql<TResponse>`query MyQuery {
user(username: "Joe") {
id
name
}
}`
The regex is tested here. 2 tests don't pass but as they are not valid Typescript syntax it is not a problem.
- [x] Make sure all of the significant new logic is covered by tests
- [x] Rebase your changes on master so that they can be merged easily
- [x] Make sure all tests and linter rules pass
@hugo082: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/
@JakeDawkins what is the process to ask for a review/release? Maybe I need to post on a community channel?
@hwillson can you have a look at this PR? 🙏