(collectionNameOrId string)
| 390 | } |
| 391 | |
| 392 | func (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 | |
| 400 | func (r *RecordFieldResolver) registerJoin(tableName string, tableAlias string, on dbx.Expression) error { |
| 401 | newJoin := &search.Join{ |
no test coverage detected