cayleygraph / cayley

An open-source graph database
https://cayley.io
Apache License 2.0
14.83k stars 1.25k forks source link

Respect quad:"-" (blank) annotation in loader #936

Open ermik opened 4 years ago

ermik commented 4 years ago

For a give quad-compatible struct:

type Person struct {
        PasswordHash []byte `json:"-" quad:"-"`
}

the loader.go logic will fail in checkFieldType as arrays are unsupported. Regardless of support status, fields marked as blank should be ignored when executing value load.