You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly thank you very much for this awesome extension. It works beautifully and saves a lot of time on client-side developments.
I do have a feature request. Before I come to that, here's a little about the backstory.
I develop WordPress plugins and currently in the process of developing a plugin where it will provide a graphql server. For that I am using graphql-php which can create a Apollo compliant server written in PHP.
I can point apollo client to my GraphQL endpoint URL and it works fine in JavaScript/TypeScript files. I mean I am very thankful and just blown away that this extension can talk to my in-development graphql-server (not written with apollo-server, but graphql-php) and provide intellisense within my typescript files.
This is just awesome.
But for testing out the server, I do write integration tests in PHP where I do something like
$mutation = <<<'GQL'
mutation CreateCategory($title: String!, $description: String!) { createCategory(data: { title: $title description: $description }) { id title description }}
GQL;
for ( $i = 0; $i < 10; $i++ ) {
self::executeGraphQLQuery(
$mutation,
[
'title' => 'Category ' . $i,
'description' => 'This category is created in ' . $i . ' iteration',
]
);
}
Now life would've been complete, if the string inside the PHP newdoc, i.e, the string after $mutation = <<<'GQL' and before GQL;
Syntax highlighted.
Optionally provide that same awesome language server feature.
Thank you very much for your consideration. I am a regular user of this plugin and if by any means I can help, please point me in the direction.
The text was updated successfully, but these errors were encountered:
Hey @swashata, thanks for the great writeup. At this time, support for PHP is not something we'd be building ourselves, but we would definitely consider a PR for it!
I'll point to a previous PR that we merged recently that adds support for Ruby. If you're interested in implementing this, it would be much appreciated!
Hello,
Firstly thank you very much for this awesome extension. It works beautifully and saves a lot of time on client-side developments.
I do have a feature request. Before I come to that, here's a little about the backstory.
I develop WordPress plugins and currently in the process of developing a plugin where it will provide a graphql server. For that I am using graphql-php which can create a Apollo compliant server written in PHP.
Now using the PHP server and
apollo.config.js
I can point apollo client to my GraphQL endpoint URL and it works fine in JavaScript/TypeScript files. I mean I am very thankful and just blown away that this extension can talk to my in-development graphql-server (not written with apollo-server, but graphql-php) and provide intellisense within my typescript files.
This is just awesome.
But for testing out the server, I do write integration tests in PHP where I do something like
Now life would've been complete, if the string inside the PHP newdoc, i.e, the string after
$mutation = <<<'GQL'
and beforeGQL;
Thank you very much for your consideration. I am a regular user of this plugin and if by any means I can help, please point me in the direction.
The text was updated successfully, but these errors were encountered: