Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

resolveType arguments do not match documentation #375

Open
lukeify opened this issue Aug 31, 2018 · 0 comments
Open

resolveType arguments do not match documentation #375

lukeify opened this issue Aug 31, 2018 · 0 comments

Comments

@lukeify
Copy link

lukeify commented Aug 31, 2018

According to the documentation on interfaces for this repository, the resolveType method receives an argument $root, as so:

   public function resolveType($root)
    {
        // Use the resolveType to resolve the Type which is implemented trough this interface
        $type = $root['type'];
        if ($type === 'human') {
            return GraphQL::type('Human');
        } else if  ($type === 'droid') {
            return GraphQL::type('Droid');
        }
    }

This does not appear to be the case currently:

screen shot 2018-08-31 at 12 57 14 pm

screen shot 2018-08-31 at 12 56 15 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant