Hello everyone!
I am facing a problem while trying set new data.
Schema:
p_id: string @index(hash)
Trying set via SetJson:
{
"set": [
{
"uid": "_:p",
"p_id": "0225100000118000273"
}]
}
Leads me to this record in db (“225100000118000273”). No first zero.
While trying set via SetNquads:
{
set {
_:p <p_id> "0225100000118000273" .
}
}
Works just fine. (“0225100000118000273”)
Am i missing something?
Using SetJSON via goalng client is more comfortably for me. So i want to figure it out how to do it properly.
I can’t use “int” in schema, cuz it obviously do the same trick (which is make sense in numbers).
Also i could put “№” or other character before whole string(“№0225100000118000273”), but it feels like unnatural approach.