Skip to content

Commit

Permalink
Add field projection to blessed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Jan 8, 2024
1 parent fefaf84 commit bb8fe7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions emmet-api/emmet/api/routes/materials/materials/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def blessed_tasks_resource(materials_store):
NumericQuery(model=MaterialsDoc),
PaginationQuery(),
LicenseQuery(),
SparseFieldsQuery(
MaterialsDoc,
default_fields=["material_id", "last_updated"],
),
],
key_fields=[
"material_id",
Expand Down

0 comments on commit bb8fe7d

Please sign in to comment.