Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dmoverton/nested-select
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoverton committed Jan 15, 2024
2 parents a67a3b1 + 27c03f3 commit 2252d01
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"rows": [
{
"first_name": "Peter",
"last_name": "Landin",
"articles": {
"aggregates": {
"count": 1
}
}
},
{
"first_name": "John",
"last_name": "Hughes",
"articles": {
"aggregates": {
"count": 2
}
}
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "../../../../ndc-client/tests/json_schema/query_request.jsonschema",
"collection": "authors",
"arguments": {},
"query": {
"fields": {
"first_name": {
"type": "column",
"column": "first_name"
},
"last_name": {
"type": "column",
"column": "last_name"
},
"articles": {
"type": "relationship",
"arguments": {},
"relationship": "author_articles",
"query": {
"aggregates": {
"count": {
"type": "star_count"
}
}
}
}
}
},
"collection_relationships": {
"author_articles": {
"arguments": {},
"column_mapping": {
"id": "author_id"
},
"relationship_type": "array",
"source_collection_or_type": "author",
"target_collection": "articles"
}
}
}

0 comments on commit 2252d01

Please sign in to comment.