skillshare / apollo-federation-php Goto Github PK
View Code? Open in Web Editor NEW๐ A PHP implementation of the Apollo Federation specification
License: MIT License
๐ A PHP implementation of the Apollo Federation specification
License: MIT License
Hi,
Thanks for your work, I am currently starting to build a new federation project, and looking for v2 support in PHP libs as some of my subgraphs are built upon webonyx.
Do you have any plan to support Federation v2 any time soon ?
https://www.apollographql.com/docs/federation/other-servers/
Thanks
Hi I have a product entity
new EntityRefObjectType([
'name' => 'Product',
'keyFields' => ['id'],
'fields' => [
'id' => fn() => [
'description' => 'The ID of the Product.',
'type' => Type::nonNull(Type::int()),
],
'accessorySlot' => fn() => [
'description' =>
'Accessory alternatives that share a product type and or fiter set and or classification',
'type' => $this->createConfiguratorSlotType(),
'resolve' => $this->productAccessorySlotResolver,
'args' => [ 'criteria' => [
'name' => 'AccessorySlotCriteria',
'description' => 'The criteria an accessory slot should satisfy.',
'keyFields' => ['productTypeId limit classificationId filterSetId'],
'fields' => [
'productTypeId' => fn() => [
'description' => "The accessory's product type.",
'type' => Type::nonNull(Type::int()),
],
],
] ]
]
]
]);
And I this field (accessorySlot) Im contributing requires extra args namely productTypeId to be resolved. I used this configuration, but it seems that the args from the accessorySlot property are not picked up in the GraphQL schema
Is this intended behavior or is it simply not build yet? If the latter can you point me in the right direction to contribute this feature?
Regarding the following line we experienced some trouble because the root of our subgraph is called RootQuery
and not just Query
. While this in general is no problem it is lacking some documentation. It took us quite some hours and the help of @margnusnordlander (issue) to figure this out.
Maybe this convention should be mentioned in the docs or could be dynamically adjusted to the defined query name.
Hi,
I'm having the following issue with the library in this part of the code:
apollo-federation-php/src/FederatedSchema.php
Lines 215 to 227 in 4f958dd
The issue is that the library is unable to subscribe entities that aren't returned by a query.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.