Releases: Skillshare/apollo-federation-php
Releases · Skillshare/apollo-federation-php
Attempt 2 of handling php 8.2 deprecations
Support php 8. depreactions
v1.8 fix: remove use of self in callable (#37)
Support type loader and entity type specification
What's Changed
- chore: update .gitignore to exclude IDE specific files by @jmauerhan in #29
- feat: entity type customization, type loader support by @jpasquers in #33
New Contributors
- @jpasquers made their first contribution in #33
Full Changelog: v1.6...v1.7
v1.6: PHP 8.1 Support, Fixed Standard Directives
What's Changed
- feat: add support for php 8.1 by @jmauerhan in #28
- fix: ensure default directives do not get replaced by custom directives by @jmauerhan in #27
New Contributors
- @jmauerhan made their first contribution in #28
Full Changelog: v1.5...v1.6
v1.5: Remove entity key validation
What's Changed
Full Changelog: v1.4.1...v1.5
v1.4.1: Release stable
chore: Update licence and docs (#21) * chore: OS licensing and docs update * chore: Fix version * chore: Remove version * chore: Fix composer lock * fix: Revert composer files * chore: Upgrade graphql-php
v1.4: fix: remove entity typename = ref typename (#19)
Removed __typename from entity object because we want to check type of object in the object type itself.
fix: Make Reference Resolver public
When defining an EntityObjectType
when the '__referenceResolver'
attribute is defined with a closure that returns a promise, the referenceResolver
function needs to be overwritten as to not modify the entity
The referenceResolver
function sets the $referenceResolver
property.
Because of this, the $referenceResolver
property needs to be public.
Configure the Resolve Function
When defining a Federated schema, you can now set the resolve function in the initializer.
new FederatedSchema([
'query' => $this->queryType,
'mutation' => $this->mutationType,
'types' => $this->typeRegistry->getAll(),
'resolve' => function ($root, $args, $context, $info) {
$adapter = new SyncPromiseAdapter();
$resolver = new FederatedSchemaResolver($root, $args, $context, $info, $adapter);
return $resolver->resolve();
}
]);
Fix schema printing
Fix schema printing