TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Praashh/buildml/llms.txt
Use this file to discover all available pages before exploring further.
problemSetRouter provides two public query procedures for listing and retrieving AI/ML problem sets. Problem sets are curated collections of coding challenges grouped by topic (e.g., NumPy fundamentals, ML model training). No authentication is required to call either procedure.
problemSet.getAll
Returns every problem set in the database, ordered by creation date (newest first). Each record includes a _count.problems field so you can display problem counts without fetching the full problem list.
Type: query — Auth: public
Input: none
Response
An array ofProblemSet objects. Each element has the following shape:
Unique CUID identifier for the problem set.
Human-readable title of the problem set (e.g.,
"NumPy Fundamentals").URL-safe unique identifier used in routing (e.g.,
"numpy-fundamentals").Optional longer description of the problem set. Stored as full text; may be
null.ISO 8601 timestamp of when the problem set was created.
ISO 8601 timestamp of the last update to the problem set record.
Prisma aggregation object included on every result.
problemSet.getBySlug
Fetches a single problem set by its unique slug, including the full ordered list of problems that belong to it. Returns null if no matching record is found.
Type: query — Auth: public
Input: { slug: string }
The URL-safe slug of the problem set to fetch (e.g.,
"numpy-fundamentals").
Validated by Zod as a non-empty string.Response
A singleProblemSet object — or null when no record matches the given slug.
Unique CUID identifier for the problem set.
Human-readable title (e.g.,
"NumPy Fundamentals").URL-safe unique identifier.
Optional full-text description of the problem set.
ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.
Ordered list of problems that belong to this set (
orderBy: { order: 'asc' }).getBySlug uses Prisma’s findUnique, so it performs a single indexed lookup
on the slug column. The included problems array is sorted by order ascending,
reflecting the intended curriculum sequence.