-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GQL-45: Added support for the client to run query builders natively
- Added an QueryBuilderInterface that all query builders must adhere to - Added support for running query builders in the runQuery method in the client class - Minor tweaks in the QueryBuilder implementation to allow for adding the interface in a clean way - Modified examples and README to show how client can be used to run QueryBuilderInterface directly - Added tests to cover the new implementation
- Loading branch information
Showing
7 changed files
with
62 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace GraphQL\QueryBuilder; | ||
|
||
use GraphQL\Query; | ||
|
||
/** | ||
* Interface QueryBuilderInterface | ||
* | ||
* @package GraphQL\QueryBuilder | ||
*/ | ||
interface QueryBuilderInterface | ||
{ | ||
/** | ||
* @return Query | ||
*/ | ||
function getQuery(): Query; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters