Skip to content

Releases: Skillshare/apollo-federation-php

Attempt 2 of handling php 8.2 deprecations

01 Dec 20:35
3c9c816
Compare
Choose a tag to compare
v1.9

fix: fully qualified class name (#38)

Support php 8. depreactions

01 Dec 20:20
5df1bbc
Compare
Choose a tag to compare
v1.8

fix: remove use of self in callable (#37)

Support type loader and entity type specification

05 Apr 16:44
aec3604
Compare
Choose a tag to compare

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

Full Changelog: v1.6...v1.7

v1.6: PHP 8.1 Support, Fixed Standard Directives

16 Aug 19:08
4f958dd
Compare
Choose a tag to compare

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

Full Changelog: v1.5...v1.6

v1.5: Remove entity key validation

14 Oct 14:48
2b418ba
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.1...v1.5

v1.4.1: Release stable

14 Oct 13:01
61772cc
Compare
Choose a tag to compare
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)

10 Sep 20:27
e195b5d
Compare
Choose a tag to compare

Removed __typename from entity object because we want to check type of object in the object type itself.

fix: Make Reference Resolver public

22 Apr 14:26
1c2bf7b
Compare
Choose a tag to compare

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

20 Apr 17:44
7ef0ff9
Compare
Choose a tag to compare

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

24 Aug 15:02
c82df7b
Compare
Choose a tag to compare

Fix schema printing