return thunks on network refs
It's still all hard-coded, but this is what it'll look like once we
actually resolve them.
@@ -88,11 +88,13 @@ func buildReferenceField(propertyType schema.PropertyDataType,
results[i] = localRef
case NetworkRef:
- networkRef := map[string]interface{}{
+ networkRef := func() (interface{}, error) {
+ return map[string]interface{}{
"__refClassType": "network",
"__refClassName": "Country",
"__refClassPeerName": "WeaviateB",
"name": "hard-coded, but should be network resolved",
+ }, nil
}
results[i] = networkRef
