added autocomplete for the back relation keys
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user