()
| 208 | } |
| 209 | |
| 210 | async user() { |
| 211 | const { data } = await this.query({ |
| 212 | query: queries.user, |
| 213 | fetchPolicy: CACHE_FIRST, // we can assume user details don't change often |
| 214 | }); |
| 215 | return data.viewer; |
| 216 | } |
| 217 | |
| 218 | async retrieveBlobObject(owner: string, name: string, expression: string, options = {}) { |
| 219 | const { data } = await this.query({ |