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