MCPcopy Create free account
hub / github.com/ethanniser/NextFaster / getSubcollections

Function getSubcollections

scripts/generate.ts:125–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123// generateSubCollections();
124
125const getSubcollections = async () => {
126 // only get subcollections that have no subcategories
127 const result = await db
128 .select()
129 .from(subcollections)
130 .leftJoin(
131 subcategories,
132 eq(subcollections.id, subcategories.subcollection_id),
133 )
134 .where(isNull(subcategories.subcollection_id))
135 .limit(300);
136 console.log(result.length);
137 return result;
138};
139
140const generateSubcategories = async () => {
141 const data = [] as any;

Callers 1

generateSubcategoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected