Skip to content

Commit

Permalink
Spatial Projections fix (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Nov 22, 2020
1 parent f33e7b6 commit c5914f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -14,6 +14,15 @@ public class QueryableProjectionScalarHandler
selection.Field.Member is {} &&
selection.SelectionSet is null;

public override bool TryHandleEnter(
QueryableProjectionContext context,
ISelection selection,
out ISelectionVisitorAction? action)
{
action = SelectionVisitor.SkipAndLeave;
return true;
}

public override bool TryHandleLeave(
QueryableProjectionContext context,
ISelection selection,
Expand Down
Expand Up @@ -56,6 +56,7 @@ public ProjectionVisitorTestBase(PostgreSqlResource<PostgisConfig> resource)
.Name("Query")
.Field("root")
.Resolver(resolver)
.UseProjection()
.Use(next => async context =>
{
await next(context);
Expand Down

0 comments on commit c5914f7

Please sign in to comment.