7 Commits

Author SHA1 Message Date
Long Nguyen
77e243f841 Refactor code convert GraphQL params to ORM conditions
Signed-off-by: Long Nguyen <olragon@gmail.com>
2020-03-31 16:01:39 +02:00
Long Nguyen
634592fb5b fix: GraphQL Aggregation Bookshelf where condition aren't applied to groupBy
Signed-off-by: Long Nguyen <olragon@gmail.com>
2020-03-31 16:01:39 +02:00
Convly
67187c38f2 Rename _type to type and type to nonRequiredType
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-03-30 16:45:00 +02:00
Convly
1103d96500 Rename noRequired to nonRequired
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-03-30 16:45:00 +02:00
Convly
98b5b4a029 GraphQL Aggregation: Remove required marker when checking for number types (int/float)
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-03-30 16:45:00 +02:00
Long Nguyen
77a5160d1a
Implement Graphql Aggregation Feature for Bookshelf (#5605)
* Implement Graphql Aggregation Feature for Bookshelf

Signed-off-by: Long Nguyen <olragon@gmail.com>

* Fix no-unused-vars

Signed-off-by: Long Nguyen <olragon@gmail.com>

* Fix code to use `model.get()` instead of internal structure

Signed-off-by: Long Nguyen <olragon@gmail.com>
2020-03-27 10:40:29 +01:00
Alexandre Bodin
628b2e54e6 Refactor graphql plugin structure
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:40 +01:00