-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.exp/expertDeeply technical issue not recommended to beginners.Deeply technical issue not recommended to beginners.kind/featureSomething completely new we should consider.Something completely new we should consider.priority/P3Low priority, something to be done once everything else seems fixed.Low priority, something to be done once everything else seems fixed.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
Milestone
Description
In SQL language, we can apply simple functions to the fields, including create new fields.
e.g.
SELECT concat(first_name, ' ' , last_name) AS full_name
SELECT A, B, 'c' as C from MyTable
SELECT ROUND(Weight_kg / (Height_m * Height_m), 2) AS BMI from ...
In DGraphQL, is it possible to support following kind of query?
{
allNodes(func: eq(type, "DP")){
supplyDate
consumeDate
status
issueBehindSchedule: math(supply_date > consume_date)
noSupplyDate: eq(supplyDate, null)
atRisk: eq(status, "At Risk")
}
}
shravan-v
Metadata
Metadata
Assignees
Labels
area/querylangIssues related to the query language specification and implementation.Issues related to the query language specification and implementation.exp/expertDeeply technical issue not recommended to beginners.Deeply technical issue not recommended to beginners.kind/featureSomething completely new we should consider.Something completely new we should consider.priority/P3Low priority, something to be done once everything else seems fixed.Low priority, something to be done once everything else seems fixed.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.