=added experimental expand, filter, fields, custom query and headers parameters support for the realtime subscriptions

This commit is contained in:
Gani Georgiev
2023-10-23 22:46:47 +03:00
parent e6f1b3dfe4
commit 79617e6d99
41 changed files with 553 additions and 257 deletions
+5 -4
View File
@@ -64,12 +64,12 @@ type CollectionsFinder interface {
type RecordFieldResolver struct {
dao CollectionsFinder
baseCollection *models.Collection
allowHiddenFields bool
allowedFields []string
loadedCollections []*models.Collection
joins []*join // we cannot use a map because the insertion order is not preserved
requestInfo *models.RequestInfo
staticRequestInfo map[string]any
allowedFields []string
loadedCollections []*models.Collection
joins []*join
allowHiddenFields bool
}
// NewRecordFieldResolver creates and initializes a new `RecordFieldResolver`.
@@ -77,6 +77,7 @@ func NewRecordFieldResolver(
dao CollectionsFinder,
baseCollection *models.Collection,
requestInfo *models.RequestInfo,
// @todo consider moving per filter basis
allowHiddenFields bool,
) *RecordFieldResolver {
r := &RecordFieldResolver{