Skip to content

Commit

Permalink
support aggregation group by (#49)
Browse files Browse the repository at this point in the history
* support aggregation group by
* support recursive aggregation
* fixed some bugs
* added e2e testing
  • Loading branch information
roneli authored Mar 6, 2024
1 parent 90ecafa commit 5856329
Show file tree
Hide file tree
Showing 33 changed files with 6,415 additions and 2,006 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,30 @@ on:
jobs:
unitests:
runs-on: 'ubuntu-latest'
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends postgresql-client
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
# run the sql script init.sql in workflows/data
- run: |
psql -h localhost -U postgres -f .github/workflows/data/init.sql
- run: go mod download
- name: Test
run: go test -v ./...
4 changes: 3 additions & 1 deletion examples/interface/graph/fastgql.graphql
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
directive @fastgqlField(skipSelect: Boolean = True) on FIELD_DEFINITION
directive @isInterfaceFilter on INPUT_FIELD_DEFINITION
directive @generate(filter: Boolean = True, pagination: Boolean = True, ordering: Boolean = True, aggregate: Boolean = True, recursive: Boolean = True, filterTypeName: String) on FIELD_DEFINITION
directive @generateFilterInput(description: String) on OBJECT | INTERFACE
directive @generateMutations(create: Boolean = True, delete: Boolean = True, update: Boolean = True) on OBJECT
directive @isInterfaceFilter on INPUT_FIELD_DEFINITION
directive @relation(type: _relationType!, fields: [String!]!, references: [String!]!, manyToManyTable: String = "", manyToManyFields: [String] = [], manyToManyReferences: [String] = []) on FIELD_DEFINITION
directive @table(name: String!, dialect: String! = "postgres", schema: String = "") on OBJECT | INTERFACE
directive @typename(name: String!) on INTERFACE
scalar Map

input BooleanComparator {
eq: Boolean
neq: Boolean
Expand Down
239 changes: 0 additions & 239 deletions examples/interface/graph/fastgql_schema.graphql

This file was deleted.

Loading

0 comments on commit 5856329

Please sign in to comment.