added autocomplete for the back relation keys

This commit is contained in:
Gani Georgiev
2024-02-19 23:13:04 +02:00
parent 4937acb3e2
commit f2ed186540
36 changed files with 61 additions and 51 deletions
+1 -4
View File
@@ -515,10 +515,7 @@ func (r *runner) processActiveProps() (*search.ResolverResult, error) {
if field == nil {
parts := viaRegex.FindStringSubmatch(prop)
if len(parts) != 3 {
if r.nullifyMisingField {
return &search.ResolverResult{Identifier: "NULL"}, nil
}
return nil, fmt.Errorf("unknown field %q", prop)
return nil, fmt.Errorf("field %q is not a valid back relation", prop)
}
backCollection, err := r.resolver.loadCollection(parts[1])
+1
View File
@@ -144,6 +144,7 @@ func (r *RecordFieldResolver) UpdateQuery(query *dbx.SelectQuery) error {
// id
// someSelect.each
// project.screen.status
// screen.project_via_prototype.name
// @request.context
// @request.method
// @request.query.filter