|
|
|
@ -41,16 +41,13 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Contents.Visitors |
|
|
|
result = new CompareFilter<ClrValue>(path, nodeIn.Operator, nodeIn.Value); |
|
|
|
} |
|
|
|
|
|
|
|
if (path.Count == 1 && path[0] == "_id") |
|
|
|
if (value is List<Guid> guidList) |
|
|
|
{ |
|
|
|
if (result.Value.Value is List<Guid> guidList) |
|
|
|
{ |
|
|
|
result = new CompareFilter<ClrValue>(path, nodeIn.Operator, guidList.Select(x => x.ToString()).ToList()); |
|
|
|
} |
|
|
|
else if (result.Value.Value is Guid guid) |
|
|
|
{ |
|
|
|
result = new CompareFilter<ClrValue>(path, nodeIn.Operator, guid.ToString()); |
|
|
|
} |
|
|
|
result = new CompareFilter<ClrValue>(path, nodeIn.Operator, guidList.Select(x => x.ToString()).ToList()); |
|
|
|
} |
|
|
|
else if (value is Guid guid) |
|
|
|
{ |
|
|
|
result = new CompareFilter<ClrValue>(path, nodeIn.Operator, guid.ToString()); |
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|