func BuildStringValue(val string) *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind:        proto.RGQLPrimitive_PRIMITIVE_KIND_STRING,
			StringValue: val,
		},
	}
}
BuildStringValue returns a string primitive value.
package resolver
import (
	proto "github.com/rgraphql/rgraphql"
)
type Value struct {
	Context *Context
	Value   *proto.RGQLPrimitive
	Error   error
}
func GetPrimValueFuncName(primKind proto.RGQLPrimitive_Kind) string {
	switch primKind {
	case proto.RGQLPrimitive_PRIMITIVE_KIND_INT:
		return "BuildIntValue"
	case proto.RGQLPrimitive_PRIMITIVE_KIND_BOOL:
		return "BuildBoolValue"
	case proto.RGQLPrimitive_PRIMITIVE_KIND_STRING:
		return "BuildStringValue"
	case proto.RGQLPrimitive_PRIMITIVE_KIND_FLOAT:
		return "BuildFloatValue"
	case proto.RGQLPrimitive_PRIMITIVE_KIND_NULL:
		return "BuildNullValue"
	default:
		return ""
	}
}
func BuildErrorValue(err error) *Value {
	return &Value{
		Error: err,
	}
}