Skip to content

fix(graphql): operation with disabled pagination#4930

Closed
webda2l wants to merge 3 commits into
api-platform:2.7from
OLYBe:fix-graphql-disabledpagination
Closed

fix(graphql): operation with disabled pagination#4930
webda2l wants to merge 3 commits into
api-platform:2.7from
OLYBe:fix-graphql-disabledpagination

Conversation

@webda2l

@webda2l webda2l commented Sep 8, 2022

Copy link
Copy Markdown
Contributor
Q A
Branch? 2.7
Tickets #4613 (comment) & #4613 (comment)
License MIT
Doc PR api-platform/docs#...
  • Add tests

if ($this->typeBuilder->isCollection($type)) {
return $this->pagination->isGraphQlEnabled($rootOperation) && !$input ? $this->typeBuilder->getResourcePaginatedCollectionType($graphqlType, $resourceClass, $rootOperation) : GraphQLType::listOf($graphqlType);
$resourceMetadataCollection = $this->resourceMetadataCollectionFactory->create($resourceClass);
$resolverOperation = $resourceMetadataCollection->getOperation(null, true, false, true);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you use an operation name instead of adding a flag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Not sure to understand your point sorry.

@alanpoulain

Copy link
Copy Markdown
Member

Superseded by #5112.

@alanpoulain alanpoulain closed this Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants