Comments (3)
First of all, let me say that I am joyous that someone actually tried using this library 🎉
Do you have a stacktrace, where does the error come from?
from sailor.
The error comes from Spawnia\Sailor\Codegen\Generator::ensureOperationsAreNamed
.
In Generator.php line 158:
[GraphQL\Error\Error]
Found unsupported definition in /src/gql/linkableByUrlQuery.graphql
Exception trace:
at /src/vendor/spawnia/sailor/src/Codegen/Generator.php:158
Spawnia\Sailor\Codegen\Generator::ensureOperationsAreNamed() at /src/vendor/spawnia/sailor/src/Codegen/Generator.php:186
Spawnia\Sailor\Codegen\Generator->parsedDocuments() at /src/vendor/spawnia/sailor/src/Codegen/Generator.php:43
Spawnia\Sailor\Codegen\Generator->generate() at /src/vendor/spawnia/sailor/src/Console/CodegenCommand.php:41
Spawnia\Sailor\Console\CodegenCommand->execute() at /src/vendor/symfony/console/Command/Command.php:258
Symfony\Component\Console\Command\Command->run() at /src/vendor/symfony/console/Application.php:911
Symfony\Component\Console\Application->doRunCommand() at /src/vendor/symfony/console/Application.php:264
Symfony\Component\Console\Application->doRun() at /src/vendor/symfony/console/Application.php:140
Symfony\Component\Console\Application->run() at /src/vendor/spawnia/sailor/sailor:24
If I comment out the call to ensureOperationsAreNamed()
I get a different error
In OperationSet.php line 52:
[Exception]
The selection stack was unexpectedly empty.
Exception trace:
at /src/vendor/spawnia/sailor/src/Codegen/OperationSet.php:52
Spawnia\Sailor\Codegen\OperationSet->peekSelection() at /src/vendor/spawnia/sailor/src/Codegen/ClassGenerator.php:212
Spawnia\Sailor\Codegen\ClassGenerator->Spawnia\Sailor\Codegen\{closure}() at /src/vendor/webonyx/graphql-php/src/Language/Visitor.php:470
GraphQL\Language\Visitor::GraphQL\Language\{closure}() at /src/vendor/webonyx/graphql-php/src/Language/Visitor.php:277
GraphQL\Language\Visitor::visit() at /src/vendor/spawnia/sailor/src/Codegen/ClassGenerator.php:269
Spawnia\Sailor\Codegen\ClassGenerator->generate() at /src/vendor/spawnia/sailor/src/Codegen/Generator.php:54
Spawnia\Sailor\Codegen\Generator->generate() at /src/vendor/spawnia/sailor/src/Console/CodegenCommand.php:41
Spawnia\Sailor\Console\CodegenCommand->execute() at /src/vendor/symfony/console/Command/Command.php:258
Symfony\Component\Console\Command\Command->run() at /src/vendor/symfony/console/Application.php:911
Symfony\Component\Console\Application->doRunCommand() at /src/vendor/symfony/console/Application.php:264
Symfony\Component\Console\Application->doRun() at /src/vendor/symfony/console/Application.php:140
Symfony\Component\Console\Application->run() at /src/vendor/spawnia/sailor/sailor:24
from sailor.
Supported with https://github.com/spawnia/sailor/releases/tag/v0.20.0
from sailor.
Related Issues (20)
- guzzle/guzzle dependency issue HOT 1
- Support interfaces HOT 6
- Support unions
- Enhance functionality of value objects HOT 1
- GraphQL custom scalar types should be type hint `mixed` in PHP HOT 2
- Custom scalar type not convert type when use it as an argument HOT 3
- Handle Exception that isClientSafe() HOT 1
- Allow to introspect but not generate classes HOT 7
- ObjectLike properties array causing Errors for missing array keys HOT 1
- Generate class from schema.graphql HOT 2
- postgresql float8 is handle by Scalar_converter and return excetion HOT 1
- Fire events HOT 1
- Minify query strings
- Keywords as field or type names HOT 1
- [Support] - date range HOT 4
- Support operations with client directives HOT 3
- nette/php-generator should be in require-dev HOT 6
- Guzzle getBody with dynamic clients throws error HOT 1
- Compatibility with PHP 8.3 and Symfony 7.0 HOT 1
- Add filename when validator return exception HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sailor.