HomeVendure CoreShow hidden breadcrumbs...List Detail ViewsBaseEntityResolverBaseEntityResolver@vendure/admin-uiSource A base resolver for an entity detail route. Resolves to an observable of the given entity, or a "blank" version if the route id equals "create". Should be used together with details views which extend the BaseDetailComponent. Example Ts@Injectable({ providedIn: 'root',})export class MyEntityResolver extends BaseEntityResolver<MyEntityFragment> { constructor(router: Router, dataService: DataService) { super( router, { __typename: 'MyEntity', id: '', createdAt: '', updatedAt: '', name: '', }, id => dataService.query(GET_MY_ENTITY, { id }).mapStream(data => data.myEntity), ); }} Signatureclass BaseEntityResolver<T> { constructor(router: Router, emptyEntity: T, entityStream: (id: string) => Observable<T | null | undefined>)} Was this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousBaseDetailComponentNextBaseListComponentEdited Apr 20, 2026ยทEdit this page