Comments (2)
Just copy-pasting the discussion related to this issue:
thelinuxlich — We will group automatically if the user adds in the graphql query additional fields besides the common aggregations
query {
findNotes {
text
count(of: NoteFields.id)
}
}
Will automatically group by text, count(id)
from rel.
Just added the 5 essential aggregations to Rel: count, max, sum, avg and min.
The codegen will generate a enum containing all fields of each model to input on count, and a enum containing all fields of number type(including scalars) for the other 4 aggregations.
If the user pass additional fields on query, Rel will automatically GROUP the result, example:
Query {
findTodos(filter: { a: { gt: 1 } }) {
a
sum(of: TodoFields.b)
}
}
Is equivalent to GROUP(a, sum(b))
from rel.
Related Issues (20)
- Rethink relationships HOT 3
- Make the project compatible with GraphQL 16+
- @stateMachine annotation HOT 5
- Sort by multiple fields HOT 1
- Computed/Calculated/Derived fields HOT 6
- DISTINCT option for aggregations HOT 1
- Integration test suite HOT 1
- UNIQUE constraint
- Remove manual ID definition in the schema HOT 1
- Geolocation HOT 1
- Cached counts
- Investigate replacing annotations with directives HOT 1
- @default directive HOT 1
- @fake directive
- @http directive HOT 1
- Extract cypher library to it's own package HOT 1
- Relationships
- Typescript Client
- Add Neo4j support
- Command not found: rel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rel.