Skip to content

Commit

Permalink
fix(core): query.project(...) not accepting Field primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
binier committed Aug 6, 2020
1 parent a6f127d commit e55cea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/query/query-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { DirectiveBuilder } from '../directive';
import { Ref } from '../ref';
import { CombinedQuery } from './combined-query';
import { CombinedQueryBuilder } from './combined-query-builder';
import { FieldBuilder } from '../field';

export type BuildQueryNameGen = BuildNameGen<{ _queryNameGenBrand: symbol }>;
export type QueryNameGen = ReturnType<BuildQueryNameGen>;
Expand Down Expand Up @@ -53,7 +54,7 @@ export class QueryBuilder extends EdgeBuilder {
}

project(
projection: EdgeBuilder | RawProjection<EdgeBuilder>,
projection: EdgeBuilder | RawProjection<EdgeBuilder | FieldBuilder>,
overwrite = false
) {
this.setEdges(projection, overwrite);
Expand Down

0 comments on commit e55cea8

Please sign in to comment.