-
-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
244 changed files
with
8,248 additions
and
9,824 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Node global interface | ||
interface Node @interface(resolver: "Nuwave\\Lighthouse\\Support\\Http\\GraphQL\\Interfaces\\NodeInterface@resolve") { | ||
# Global identifier that can be used to resolve any Node implementation. | ||
_id: ID! | ||
} |
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,51 @@ | ||
type PageInfo { | ||
# When paginating forwards, are there more items? | ||
hasNextPage: Boolean! | ||
|
||
# When paginating backwards, are there more items? | ||
hasPreviousPage: Boolean! | ||
|
||
# When paginating backwards, the cursor to continue. | ||
startCursor: String | ||
|
||
# When paginating forwards, the cursor to continue. | ||
endCursor: String | ||
|
||
# Total number of node in connection. | ||
total: Int | ||
|
||
# Count of nodes in current request. | ||
count: Int | ||
|
||
# Current page of request. | ||
currentPage: Int | ||
|
||
# Last page in connection. | ||
lastPage: Int | ||
} | ||
|
||
type PaginatorInfo { | ||
# Total count of available items in the page. | ||
count: Int! | ||
|
||
# Current pagination page. | ||
currentPage: Int! | ||
|
||
# Index of first item in the current page. | ||
firstItem: Int! | ||
|
||
# If collection has more pages. | ||
hasMorePages: Boolean! | ||
|
||
# Index of last item in the current page. | ||
lastItem: Int! | ||
|
||
# Last page number of the collection. | ||
lastPage: Int! | ||
|
||
# Number of items per page in the collection. | ||
perPage: Int! | ||
|
||
# Total items available in the collection. | ||
total: Int! | ||
} |
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
Oops, something went wrong.