How to convert string to quad.Value?

schema

#1

How to convert string to quad.Value?

err := schema.LoadTo(nil, a.Store, &clinic, quad.Value(clinicID))

The line above gives me: cannot convert clinicID (type string) to type quad.Value


#2

I think you should be using

quad.AsValue(clinicID)

see https://godoc.org/github.com/cayleygraph/cayley/quad#AsValue


#3

Works! Thank you.