MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / FromString

Function FromString

task/conversion.go:54–59  ·  view source on GitHub ↗

FromString converts the given string in to a pb.TaskValue object.

(val string)

Source from the content-addressed store, hash-verified

52
53// FromString converts the given string in to a pb.TaskValue object.
54func FromString(val string) *pb.TaskValue {
55 return &pb.TaskValue{
56 Val: []byte(val),
57 ValType: pb.Posting_STRING,
58 }
59}
60
61// ToString converts the given pb.TaskValue object into a string.
62func ToString(val *pb.TaskValue) string {

Callers 1

TestSubgraphToFastJSONFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestSubgraphToFastJSONFunction · 0.74