@@ -129,11 +129,11 @@ |
||
129 | 129 | |
130 | 130 | if ($resolver && $refMethod) { |
131 | 131 | $this->context = ContextBuilder::create($context->getEndpoint()) |
132 | - ->setRoot($root) |
|
133 | - ->setResolveInfo($resolveInfo) |
|
134 | - ->setArgs($args) |
|
135 | - ->setDefinition($this->executableDefinition) |
|
136 | - ->build(); |
|
132 | + ->setRoot($root) |
|
133 | + ->setResolveInfo($resolveInfo) |
|
134 | + ->setArgs($args) |
|
135 | + ->setDefinition($this->executableDefinition) |
|
136 | + ->build(); |
|
137 | 137 | |
138 | 138 | |
139 | 139 | if ($resolver instanceof ResolverInterface) { |
@@ -88,11 +88,11 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | $context = ContextBuilder::create($context->getEndpoint()) |
91 | - ->setArgs($args) |
|
92 | - ->setRoot($root) |
|
93 | - ->setDefinition($queryDefinition) |
|
94 | - ->setResolveInfo($info) |
|
95 | - ->build(); |
|
91 | + ->setArgs($args) |
|
92 | + ->setRoot($root) |
|
93 | + ->setDefinition($queryDefinition) |
|
94 | + ->setResolveInfo($info) |
|
95 | + ->build(); |
|
96 | 96 | |
97 | 97 | $resolver = new ResolverExecutor($this->container, $queryDefinition); |
98 | 98 | $value = $resolver($root, $args, $context, $info); |
@@ -77,19 +77,19 @@ |
||
77 | 77 | |
78 | 78 | /** @var NodeBuilder $rootNode */ |
79 | 79 | $config->scalarNode('target') |
80 | - ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | - ->isRequired(); |
|
80 | + ->info('Target node to properly paginate. If is possible will be auto-resolved using naming conventions') |
|
81 | + ->isRequired(); |
|
82 | 82 | $config->variableNode('filters') |
83 | - ->info('Filters configuration'); |
|
83 | + ->info('Filters configuration'); |
|
84 | 84 | $config->variableNode('order_by'); |
85 | 85 | $config->variableNode('search_fields'); |
86 | 86 | $config->integerNode('limit')->info('Max number of records allowed for first & last')->defaultValue($this->limit); |
87 | 87 | $config->scalarNode('parent_field') |
88 | - ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
88 | + ->info('When is used in sub-fields should be the field to filter by parent instance'); |
|
89 | 89 | $config->enumNode('parent_relation') |
90 | - ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | - ->defaultValue(self::ONE_TO_MANY) |
|
92 | - ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
90 | + ->info('When is used in sub-fields should be the type of relation with the parent field') |
|
91 | + ->defaultValue(self::ONE_TO_MANY) |
|
92 | + ->values([self::ONE_TO_MANY, self::MANY_TO_MANY]); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $cursorOffset = $offset - 1; |
46 | 46 | foreach ($results as $result) { |
47 | - $cursorOffset ++; |
|
47 | + $cursorOffset++; |
|
48 | 48 | |
49 | 49 | if (!$this->connection->getPageInfo()->getStartCursor()) { |
50 | 50 | $this->connection->getPageInfo()->setStartCursor($this->encodeCursor($offset)); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | if ($pagination->getLast()) { |
117 | 117 | $offset = $count - $pagination->getLast(); |
118 | 118 | if ($offset < $this->decodeCursor($pagination->getAfter())) { |
119 | - $offset = $this->decodeCursor($pagination->getAfter()) + 1; |
|
119 | + $offset = $this->decodeCursor($pagination->getAfter()) + 1; |
|
120 | 120 | } |
121 | 121 | } else { |
122 | 122 | $offset = $this->decodeCursor($pagination->getAfter()) + 1; |
@@ -84,12 +84,12 @@ |
||
84 | 84 | ); |
85 | 85 | $config->variableNode('options')->defaultValue([])->info('Form options'); |
86 | 86 | $config->variableNode('argument') |
87 | - ->defaultValue('input') |
|
88 | - ->info('Name of the argument to use as input'); |
|
87 | + ->defaultValue('input') |
|
88 | + ->info('Name of the argument to use as input'); |
|
89 | 89 | |
90 | 90 | $config->booleanNode('client_mutation_id') |
91 | - ->defaultTrue() |
|
92 | - ->info('Automatically add a field called clientMutationId'); |
|
91 | + ->defaultTrue() |
|
92 | + ->info('Automatically add a field called clientMutationId'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |