MCPcopy
hub / github.com/pocketbase/pocketbase / loadCollection

Method loadCollection

core/record_field_resolver.go:392–398  ·  view source on GitHub ↗
(collectionNameOrId string)

Source from the content-addressed store, hash-verified

390}
391
392func (r *RecordFieldResolver) loadCollection(collectionNameOrId string) (*Collection, error) {
393 if collectionNameOrId == r.baseCollection.Name || collectionNameOrId == r.baseCollection.Id {
394 return r.baseCollection, nil
395 }
396
397 return getCollectionByModelOrIdentifier(r.app, collectionNameOrId)
398}
399
400func (r *RecordFieldResolver) registerJoin(tableName string, tableAlias string, on dbx.Expression) error {
401 newJoin := &search.Join{

Callers 4

registerJoinMethod · 0.95
processActivePropsMethod · 0.80

Calls 1

Tested by

no test coverage detected