mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-09 05:17:57 +01:00
[#160] support expand query parameter for create and update requests
This commit is contained in:
1 parent
73fb12c2bc
commit
383b2a1279
22 files changed
+398
-207
No files matched your search
@@ -150,6 +150,10 @@ func (dao *Dao) IsRecordValueUnique(
|
||||
// FindUserRelatedRecords returns all records that has a reference
|
||||
// to the provided User model (via the user shema field).
|
||||
func (dao *Dao) FindUserRelatedRecords(user *models.User) ([]*models.Record, error) {
|
||||
if user.Id == "" {
|
||||
return []*models.Record{}, nil
|
||||
}
|
||||
|
||||
collections, err := dao.FindCollectionsWithUserFields()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user