Revision cb88310a
Added by Kamil Szubrycht 12 months ago
app/graphql/connections/base_connection.rb | ||
---|---|---|
field :total_count, Integer, null: false
|
||
|
||
def total_count
|
||
object.nodes.size
|
||
object.items&.size || 0
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #36509 - Fix totalCount handling for GraphQL queries with first parameter