MCPcopy
hub / github.com/IgnisDa/ryot / createCollection

Function createCollection

tests/src/utils.ts:224–237  ·  view source on GitHub ↗
(
	baseUrl: string,
	userApiKey: string,
	name: string,
	description?: string,
)

Source from the content-addressed store, hash-verified

222}
223
224export async function createCollection(
225 baseUrl: string,
226 userApiKey: string,
227 name: string,
228 description?: string,
229) {
230 const client = getGraphqlClient(baseUrl);
231 const response = await client.request(
232 CreateOrUpdateCollectionDocument,
233 { input: { name, description } },
234 { Authorization: `Bearer ${userApiKey}` },
235 );
236 return response.createOrUpdateCollection;
237}
238
239export async function registerAdminUser(baseUrl: string) {
240 const client = getGraphqlClient(baseUrl);

Callers 3

user.test.tsFile · 0.90
cache.test.tsFile · 0.90

Calls 1

getGraphqlClientFunction · 0.85

Tested by

no test coverage detected