Function
getSourceStack
(
sourceId: string,
first = MAX_STACK_ITEMS,
)
Source from the content-addressed store, hash-verified
| 114 | `; |
| 115 | |
| 116 | export const getSourceStack = async ( |
| 117 | sourceId: string, |
| 118 | first = MAX_STACK_ITEMS, |
| 119 | ): Promise<Connection<SourceStack>> => { |
| 120 | const result = await gqlClient.request<{ |
| 121 | sourceStack: Connection<SourceStack>; |
| 122 | }>(SOURCE_STACK_QUERY, { sourceId, first }); |
| 123 | return result.sourceStack; |
| 124 | }; |
| 125 | |
| 126 | export const addSourceStack = async ( |
| 127 | sourceId: string, |
Tested by
no test coverage detected