datajunction-server 0.0.191__tar.gz → 0.0.193__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datajunction-server
3
- Version: 0.0.191
3
+ Version: 0.0.193
4
4
  Summary: DataJunction server library for running to a DataJunction server
5
5
  Project-URL: Homepage, https://datajunction.io
6
6
  Project-URL: Repository, https://github.com/DataJunction/dj
@@ -330,10 +330,19 @@ type NodeConnection {
330
330
  totalCount: Int
331
331
  }
332
332
 
333
+ type NodeCount {
334
+ value: String!
335
+ count: Int!
336
+ }
337
+
333
338
  type NodeEdge {
334
339
  node: Node!
335
340
  }
336
341
 
342
+ enum NodeGroupBy {
343
+ TYPE
344
+ }
345
+
337
346
  enum NodeMode {
338
347
  PUBLISHED
339
348
  DRAFT
@@ -583,6 +592,15 @@ type Query {
583
592
  ascending: Boolean! = false
584
593
  ): NodeConnection!
585
594
 
595
+ """Count nodes grouped by a field (e.g. type) in a namespace"""
596
+ nodeCounts(
597
+ """Field to group node counts by"""
598
+ groupBy: NodeGroupBy!
599
+
600
+ """Count nodes in this namespace (and its descendants)"""
601
+ namespace: String = null
602
+ ): [NodeCount!]!
603
+
586
604
  """Get common dimensions for one or more nodes"""
587
605
  commonDimensions(
588
606
  """A list of nodes to find common dimensions for"""