Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit e398c34

Browse files
committed
Fix projections on connection query
1 parent 0d2e1a6 commit e398c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_gae/ndb/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def connection_from_ndb_query(query, args={}, connection_type=None,
3030
page_size = first if first else full_args.get('page_size', 20)
3131
start_cursor = ndb.Cursor(urlsafe=after) if after else None
3232

33-
iter = query.iter(produce_cursors=True, start_cursor=start_cursor, batch_size=batch_size, keys_only=keys_only)
33+
iter = query.iter(produce_cursors=True, start_cursor=start_cursor, batch_size=batch_size, keys_only=keys_only, projection=query.projection)
3434

3535
edges = []
3636
while len(edges) < page_size:

0 commit comments

Comments
 (0)