Skip to content

Commit dc9e71f

Browse files
committed
Add Address resource
1 parent 2007916 commit dc9e71f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,20 @@ module.exports = {
4444
profile: {
4545
localField: 'profile',
4646
localKey: 'profileId'
47+
},
48+
address: {
49+
localField: 'address',
50+
localKey: 'addressId'
4751
}
4852
}
4953
}
5054
} || options.userConfig)
5155
this.$$Profile = this.$$store.defineResource({
5256
name: 'profile'
5357
} || options.profileConfig)
58+
this.$$Address = this.$$store.defineResource({
59+
name: 'address'
60+
} || options.addressConfig)
5461
this.$$Post = this.$$store.defineResource({
5562
name: 'post',
5663
relations: {

0 commit comments

Comments
 (0)