Comments (7)
I'm using the OOP approach btw:
class ReservationInterface extends AbstractInterfaceType {
class CourtReservationType extends AbstractObjectType { // implements ReservationInterface
class ReservationPlayerType extends AbstractObjectType {
class ClassReservationType extends AbstractObjectType { // implements ReservationInterface
class UserType extends AbstractObjectType {
If I move all fields from fragments inline (no more fragments), the query works.
from graphql.
@rudiedirkx working on it, will push an update asap
from graphql.
Was about to post about the fact that Fragments on an interface does not work for the actual implementations of that interface. Seems duplicate to this. Will be keen to follow.
from graphql.
Any updates on this?
from graphql.
I got the same problem, and adding this to my type seems to work:
public function isCompositeType()
{
return true;
}
public function getTypeOf()
{
return new PersonInterface(); // Your interface here
}
from graphql.
@Schunk that does not fix the underlaying issue. It allows you to make a fragment on the interface but not specifically on any of the concrete types.
Fixing this would be a massive step towards making this library spec compliant.
from graphql.
fixed in https://github.com/Youshido/GraphQL/releases/tag/v1.4
from graphql.
Related Issues (20)
- thrown an error when type name already exists HOT 2
- Troubleshooting needs to mention php-mbstring HOT 1
- Possible incorrect parsing of some scalar values HOT 2
- Are you looking for help in maintaining this library? HOT 5
- counting queries in payload HOT 1
- Scoping errors to the offending query when batching queries HOT 2
- Public Static Function getPropertyValue() when var in entity starts with "is" HOT 1
- How to pass ListType as argument ? HOT 1
- Tag new version HOT 2
- Improve debugging process HOT 1
- ResolvableObjectTrait should gracefully return null for all nullable types, not just scalar ones HOT 1
- Add support for error extensions
- Update Scrutinizer CI integration after organization name change HOT 2
- Not compatible with symfony 4.4 HOT 2
- PHP Fatal error when a variable is missing from operation name and dictionary of values HOT 12
- ASTField query, not its subqueries HOT 1
- Operation type directive is overriding directives defined in ancestor fields HOT 5
- Can extract the Parser as a standalone package? HOT 2
- Parsing arrays of ENUMs doesn't work
- Errors when using with PHP 8.0
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 graphql.