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
module.exports = {
client: {
service: {
name: 'something.test',
url: 'http://something.test/my-plug/graphql',
},
},
};
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.
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.jsI 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.