Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Apr 7, 2021
1 parent a864a22 commit dd4a2aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Dev/Build.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace SilverStripe\GraphQL\Dev;

use GraphQL\Utils\SchemaPrinter;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Director;
use SilverStripe\Control\HTTPRequest;
Expand All @@ -13,7 +12,6 @@
use SilverStripe\GraphQL\Schema\Exception\SchemaNotFoundException;
use SilverStripe\GraphQL\Schema\Schema;
use SilverStripe\GraphQL\Schema\SchemaBuilder;
use SilverStripe\ORM\DatabaseAdmin;

class Build extends Controller
{
Expand Down
3 changes: 3 additions & 0 deletions src/Schema/DataObject/AbstractTypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use SilverStripe\ORM\DataObject;
use Exception;

/**
* Used for unions and interfaces to map a class instance to a type
*/
class AbstractTypeResolver
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/DataObject/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\FieldType\DBField;
use SilverStripe\ORM\SS_List;

/**
* Generic resolver for DataObjects
*/
Expand All @@ -25,6 +26,7 @@ class Resolver
*/
public static function resolve($obj, $args = [], $context = [], ?ResolveInfo $info = null)
{

$fieldName = $info->fieldName;
$context = SchemaConfigProvider::get($context);
$fieldName = $context->mapFieldByClassName(get_class($obj), $fieldName);
Expand Down

0 comments on commit dd4a2aa

Please sign in to comment.