def resource_fields
import bendvy-ecs-core@0.1.0.4/ordinary_app_access.bend as OrdinaryAppAccessimport Base
import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Query
25# Typed modes retain the exact operational declaration, including filter-only modes.
26def resource_fields(~S:Data,+mode:Query.Mode,access:List<&2,String>) -> List<&2,Query.Clause<S>>:
27 match access:
28 case []:[]
29 case name <> rest:Query.Clause{name,mode} <> resource_fields(~S,mode,rest)