MCPcopy
hub / github.com/weaviate/weaviate / CollectionsData

Function CollectionsData

usecases/auth/authorization/types.go:445–457  ·  view source on GitHub ↗
(classes ...string)

Source from the content-addressed store, hash-verified

443}
444
445func CollectionsData(classes ...string) []string {
446 classes = schema.UppercaseClassesNames(classes...)
447
448 if len(classes) == 0 || (len(classes) == 1 && (classes[0] == "" || classes[0] == "*")) {
449 return []string{Objects("*", "*", "*")}
450 }
451
452 var paths []string
453 for _, class := range classes {
454 paths = append(paths, Objects(class, "*", "*"))
455 }
456 return paths
457}
458
459func Collections(classes ...string) []string {
460 classes = schema.UppercaseClassesNames(classes...)

Callers 10

QueryMethod · 0.92
DeleteObjectReferenceMethod · 0.92
AddClassMethod · 0.92
UpdateClassMethod · 0.92
resolveExploreMethod · 0.92
authorizePathFunction · 0.92
AuthorizePropertyFunction · 0.92
CollectionsFunction · 0.85

Calls 2

UppercaseClassesNamesFunction · 0.92
ObjectsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…