gql-sql-slicer
v3.0.0-beta.5
Published
The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it. ### example Query: ``` query customers{ fetch(country: US){ plan { revenue: sum(a: planPrice) } } } ``` Response: ``` {
Downloads
22
Readme
gql-sql-slicer | A query library for your SQL ddatabase.
The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it.
example
Query:
query customers{
fetch(country: US){
plan {
revenue: sum(a: planPrice)
}
}
}
Response:
{
free: {
revenue: 0
},
small: {
revenue: 9000
},
large: {
revenue: 380
},
pro: {
revenue: 500
}
}
Table Schema: Customer Name, plan, planPrice