MCPcopy
hub / github.com/dgraph-io/dgraph / convertToVarMap

Function convertToVarMap

dql/parser.go:293–301  ·  view source on GitHub ↗
(variables map[string]string)

Source from the content-addressed store, hash-verified

291}
292
293func convertToVarMap(variables map[string]string) (vm varMap) {
294 vm = make(map[string]varInfo)
295 for k, v := range variables {
296 vm[k] = varInfo{
297 Value: v,
298 }
299 }
300 return vm
301}
302
303// Request stores the query text and the variable mapping.
304type Request struct {

Callers 1

ParseWithNeedVarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected