-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #577 from kinglozzer/571-sort-warning
FIX: Don't attempt to correct sort when passed as an argument (closes #571)
- Loading branch information
Showing
5 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/Schema/_testFilterAndSortWithArgsOnlyRead_QuerySort/models.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SilverStripe\GraphQL\Tests\Fake\DataObjectFake: | ||
operations: | ||
read: | ||
plugins: | ||
sort: | ||
before: paginateList | ||
fields: | ||
myField: true | ||
author: | ||
fields: | ||
id: true | ||
firstName: true |
22 changes: 22 additions & 0 deletions
22
tests/Schema/_testFilterAndSortWithArgsOnlyRead_SortPlugin/models.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
SilverStripe\GraphQL\Tests\Fake\DataObjectFake: | ||
operations: | ||
read: | ||
plugins: | ||
sort: | ||
before: paginateList | ||
fields: | ||
myField: true | ||
AuthorID: true | ||
author: | ||
fields: | ||
firstName: true | ||
files: | ||
fields: | ||
title: true | ||
plugins: | ||
sorter: | ||
fields: | ||
id: true | ||
title: true | ||
name: true | ||
ParentID: true |