DependencyFilterOptions interface

How a child type's objects are found: each key names a field of the child loader's filter, and its value is the parent field supplying the values.

Signature:

export interface DependencyFilterOptions 

Remarks

The direction catches people out, so read it as child-side key, parent-side source. { [UserType.getFields().companyId.name]: CompanyType.getFields().id } says "call the user loader with companyId set to every company id in the result set".

The parent side is the GraphQLField object rather than its name, so a renamed field cannot leave a stale string behind. Only .name is read from it.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.