Skip to content

Commit

Permalink
support enums 💯
Browse files Browse the repository at this point in the history
  • Loading branch information
Quin Lynch committed Apr 17, 2024
1 parent 2faa75e commit 912f81e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EdgeDB.Net.QueryBuilder/Utils/EdgeDBTypeUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public static bool TryGetScalarType(Type type, [MaybeNullWhen(false)] out EdgeDB
info = new(type, scalar, false, child);
else if (hasChild)
info = new(type, "array", true, child);
else if (type.IsEnum)
info = new(type, type.GetEdgeDBTypeName(), false, child);


return info != null && _typeCache.TryAdd(type, info);
}
Expand Down

0 comments on commit 912f81e

Please sign in to comment.