Skip to content

Instantly share code, notes, and snippets.

@SergeyMell
Created September 17, 2020 22:00
Show Gist options
  • Save SergeyMell/f7212c024e93cce6e57470915dea1ff4 to your computer and use it in GitHub Desktop.
Save SergeyMell/f7212c024e93cce6e57470915dea1ff4 to your computer and use it in GitHub Desktop.
TypeORM joined tables in AdminBro back office - Post resource
import { ResourceWithOptions } from 'admin-bro';
import { Post } from '../../models/posts/entities/post.entity';
import AdminBro from 'admin-bro';
const PostResource: ResourceWithOptions = {
resource: Post,
options: {
properties: {
userLink: {
components: {
list: AdminBro.bundle('../components/property-item'),
},
},
},
},
};
export default PostResource;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment