// Desugar: query normalization that runs once on the parsed AST before// binding/planning. This is a verbatim copy of gql/internal/semantics/// desugar.go (which cannot be imported outside the module) with the local// aliases substituted for the ast package. Keep in sync with upstream.//// Lowers non-literal inline pattern property values: a constant value// ((t:Tag {name: 'Hot'}), {id: $p}) stays on the fast props seek path, but// an expression value ((t:Tag {name: tagVar}), {since: a.created}) is// rewritten to a WHERE var.key = value equality conjunct on the (possibly// synthesized) node/relationship variable, so pattern matching never// evaluates an expression inside a pattern.//// Idempotent: a second pass finds the PropExprs already drained.
The pages are generated with Goldsv0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.