Skip to content

Commit

Permalink
added total count to frontend api connections (#2141)
Browse files Browse the repository at this point in the history
- it cannot be used in decorator because of bug overblog/GraphQLBundle#341
  • Loading branch information
TomasLudvik authored Dec 3, 2020
1 parent 95d06cb commit f250b82
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/graphql/types/Pagination/ArticleConnection.types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ ArticleConnection:
type: relay-connection
config:
nodeType: Article
connectionFields:
totalCount:
type: "Int!"
description: "Total number of articles"
inherits:
- 'ArticleConnectionDecorator'
4 changes: 4 additions & 0 deletions config/graphql/types/Pagination/OrderConnection.types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ OrderConnection:
type: relay-connection
config:
nodeType: Order
connectionFields:
totalCount:
type: "Int!"
description: "Total number of orders"
inherits:
- 'OrderConnectionDecorator'
4 changes: 4 additions & 0 deletions config/graphql/types/Pagination/ProductConnection.types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ ProductConnection:
type: relay-connection
config:
nodeType: Product
connectionFields:
totalCount:
type: "Int!"
description: "Total number of products"
inherits:
- 'ProductConnectionDecorator'

0 comments on commit f250b82

Please sign in to comment.