Isomorphic JavaScript client for Supabase providing authentication, database, real-time, storage, and edge functions capabilities.
89
{
"context": "This criteria evaluates the engineer's proficiency in using @supabase/supabase-js pagination capabilities, specifically the .limit() and .range() methods for efficient database query pagination. The evaluation focuses on correct implementation of these pagination features to retrieve products from a database.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Supabase client initialization",
"description": "Correctly initializes a Supabase client using createClient() with appropriate URL and key configuration",
"max_score": 10
},
{
"name": "Table query setup",
"description": "Properly uses .from('products') to target the correct database table for all query operations",
"max_score": 10
},
{
"name": "Basic select operation",
"description": "Correctly uses .select() method to retrieve product data from the database",
"max_score": 10
},
{
"name": "Limit method usage",
"description": "Implements getProductsWithLimit() using the .limit() method to restrict the number of returned results to the specified pageSize parameter",
"max_score": 20
},
{
"name": "Range method usage",
"description": "Implements getProductsInRange() using the .range() method with correct zero-based inclusive indices (startIndex, endIndex) to retrieve a specific slice of results",
"max_score": 25
},
{
"name": "Range calculation accuracy",
"description": "Correctly calculates range parameters in getPagedProducts() by converting page number and pageSize into appropriate zero-based start and end indices for the .range() method",
"max_score": 15
},
{
"name": "Response data extraction",
"description": "Properly extracts and returns the data array from Supabase query responses (e.g., using .data property from the response object)",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-supabase--supabase-jsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10