func BuildNullValue() *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind: proto.RGQLPrimitive_PRIMITIVE_KIND_NULL,
		},
	}
}
BuildNullValue returns the null 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,
	}
}
func BuildStringValue(val string) *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind:        proto.RGQLPrimitive_PRIMITIVE_KIND_STRING,
			StringValue: val,
		},
	}
}
func BuildIntValue(val int32) *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind:     proto.RGQLPrimitive_PRIMITIVE_KIND_INT,
			IntValue: val,
		},
	}
}
func BuildFloatValue(val float64) *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind:       proto.RGQLPrimitive_PRIMITIVE_KIND_FLOAT,
			FloatValue: val,
		},
	}
}
func BuildBoolValue(val bool) *Value {
	return &Value{
		Value: &proto.RGQLPrimitive{
			Kind:      proto.RGQLPrimitive_PRIMITIVE_KIND_BOOL,
			BoolValue: val,
		},
	}
}