submissionId
stringlengths
25
25
title
stringlengths
17
64
payload
dict
cmsvrqof002uvg4p2ufkcx0j8
Submission KCX0J8
{ "sample_query": "{ __schema { queryType { name } } }", "resolver_code": "Query: { q: () => 1 }", "expected_response": "{\"data\":{\"__schema\":{\"queryType\":{\"name\":\"Query\"}}}}", "schema_definition": "type Query { q: Int! }" }
cmsvrqof002uwg4p26b7zmir7
Submission 7ZMIR7
{ "sample_query": "{ gamma { __typename g } }", "resolver_code": "Query: { gamma: () => ({g: 1}) }", "expected_response": "{\"data\":{\"gamma\":{\"__typename\":\"Gamma\",\"g\":1}}}", "schema_definition": "type Gamma { g: Int! }\ntype Query { gamma: Gamma! }" }
cmsvrqof002uxg4p2xdf4rug1
Submission F4RUG1
{ "sample_query": "{ pair }", "resolver_code": "Query: { pair: async () => { const a = await Promise.resolve(1); const b = await Promise.resolve(2); return [a, b]; } }", "expected_response": "{\"data\":{\"pair\":[1,2]}}", "schema_definition": "type Query { pair: [Int!]! }" }
cmsvrqof002uyg4p236vs2h1n
Submission VS2H1N
{ "sample_query": "{ slow2 { a b } }", "resolver_code": "Query: { slow2: () => ({}) },\nSlow: { a: async () => 1, b: async () => 2 }", "expected_response": "{\"data\":{\"slow2\":{\"a\":1,\"b\":2}}}", "schema_definition": "type Slow { a: Int!, b: Int! }\ntype Query { slow2: Slow! }" }
cmsvrqof002uzg4p2bl1vukyb
Submission 1VUKYB
{ "sample_query": "{ rejected }", "resolver_code": "Query: { rejected: () => Promise.reject(new Error('promise rejected')) }", "expected_response": "{\"errors\":[{\"message\":\"promise rejected\"}],\"data\":null}", "schema_definition": "type Query { rejected: Int! }" }
cmsvrqof002v0g4p231lns6l6
Submission LNS6L6
{ "sample_query": "{ shelf { all: titles withD: titles(contains: \"d\") } }", "resolver_code": "Query: { shelf: () => ({books: ['dune', 'ubik', 'dhalgren']}) },\nShelf: { titles: (s, {contains}) => contains ? s.books.filter(b => b.includes(contains)) : s.books }", "expected_response": "{\"data\":{\"shelf\":{\"all...
cmsvrqof002v1g4p2qro60z4g
Submission O60Z4G
{ "sample_query": "{ log { level(min: 2) } }", "resolver_code": "Query: { log: () => ({lines: ['a', 'bb', 'ccc']}) },\nLog2: { level: (l, {min}) => l.lines.filter(x => x.length >= min) }", "expected_response": "{\"data\":{\"log\":{\"level\":[\"bb\",\"ccc\"]}}}", "schema_definition": "type Log2 { lines: [String!...
cmsvtru0h0028uvp257iaoued
Submission IAOUED
{ "sample_query": "{ books { title year } book(title: \"Dune\") { author } }", "resolver_code": "Query: {\n books: () => [\n { title: \"Dune\", author: \"Frank Herbert\", year: 1965 },\n { title: \"Neuromancer\", author: \"William Gibson\", year: 1984 }\n ],\n book: (_, {title}) => [\n { title: \"Dune\"...
cmsvtru0h002auvp2q6iu0xnd
Submission IU0XND
{ "sample_query": "{ book(id: \"b1\") { title authorId } }", "resolver_code": "Query: {\n book: (_, {id}) => [\n { id: \"b1\", title: \"Dune\", authorId: \"a1\" },\n { id: \"b2\", title: \"Neuromancer\", authorId: \"a2\" }\n ].find(b => b.id === id)\n}", "expected_response": "{\"data\":{\"book\":{\"title\...
cmsvtru0h002buvp2ligoegud
Submission GOEGUD
{ "sample_query": "{ productsInStock { name price } }", "resolver_code": "Query: {\n productsInStock: () => [\n { id: \"1\", name: \"Widget\", inStock: true, price: 9.99 },\n { id: \"2\", name: \"Gadget\", inStock: false, price: 19.99 },\n { id: \"3\", name: \"Gizmo\", inStock: true, price: 14.5 }\n ].fi...
cmsvtru0h002duvp2zqck5z2w
Submission CK5Z2W
{ "sample_query": "{ post(id: \"p1\") { title comments { text } } }", "resolver_code": "Query: {\n post: (_, {id}) => [\n { id: \"p1\", title: \"Hello World\" },\n { id: \"p2\", title: \"Second Post\" }\n ].find(p => p.id === id)\n},\nPost: {\n comments: (post) => [\n { id: \"c1\", text: \"Nice post!\",...
cmsvtru0h002euvp2craob9y3
Submission AOB9Y3
{ "sample_query": "{ userExists(email: \"missing@example.com\") }", "resolver_code": "Query: {\n userExists: (_, {email}) => [\n \"alice@example.com\", \"bob@example.com\"\n ].includes(email)\n}", "expected_response": "{\"data\":{\"userExists\":false}}", "schema_definition": "type Query { userExists(email:...
cmsvtru0h002fuvp29mhhgo9k
Submission HHGO9K
{ "sample_query": "{ validateAge(age: -5) }", "resolver_code": "Query: {\n validateAge: (_, {age}) => {\n if (age < 0) throw new Error('age cannot be negative');\n if (age < 18) return 'minor';\n if (age < 65) return 'adult';\n return 'senior';\n }\n}", "expected_response": "{\"errors\":[{\"message\...
cmsvtru0h002guvp2mqzucirl
Submission ZUCIRL
{ "sample_query": "{ directReports(managerId: \"m1\") { name } }", "resolver_code": "Query: {\n directReports: (_, {managerId}) => [\n { id: \"e1\", name: \"Alice\", managerId: \"m1\" },\n { id: \"e2\", name: \"Bob\", managerId: \"m1\" },\n { id: \"e3\", name: \"Carol\", managerId: \"m2\" }\n ].filter(e ...
cmsvtru0h002huvp201t3vx20
Submission T3VX20
{ "sample_query": "{ wordCount(text: \"the quick brown fox jumps\") }", "resolver_code": "Query: {\n wordCount: (_, {text}) => text.trim().split(/\\s+/).filter(w => w.length > 0).length\n}", "expected_response": "{\"data\":{\"wordCount\":5}}", "schema_definition": "type Query { wordCount(text: String!): Int! }...
cmsvtru0h002iuvp2o089yngd
Submission 89YNGD
{ "sample_query": "{ ordersAboveThreshold(threshold: 100) { id total } }", "resolver_code": "Query: {\n ordersAboveThreshold: (_, {threshold}) => [\n { id: \"o1\", total: 45.0 },\n { id: \"o2\", total: 150.0 },\n { id: \"o3\", total: 210.5 }\n ].filter(o => o.total > threshold)\n}", "expected_response"...
cmsvtru0h002juvp2h29vqkcg
Submission 9VQKCG
{ "sample_query": "{ reverseString(s: \"graphql\") }", "resolver_code": "Query: {\n reverseString: (_, {s}) => s.split('').reverse().join('')\n}", "expected_response": "{\"data\":{\"reverseString\":\"lqhparg\"}}", "schema_definition": "type Query { reverseString(s: String!): String! }" }
cmsvtru0h002kuvp2jdwnwbcx
Submission WNWBCX
{ "sample_query": "{ largestTeam { name memberCount } }", "resolver_code": "Query: {\n largestTeam: () => {\n const teams = [\n { id: \"t1\", name: \"Alpha\", memberCount: 5 },\n { id: \"t2\", name: \"Beta\", memberCount: 12 },\n { id: \"t3\", name: \"Gamma\", memberCount: 8 }\n ];\n return...
cmsvtru0h002luvp29a17iyx7
Submission 17IYX7
{ "sample_query": "{ parseIntSafe(input: \"not-a-number\") }", "resolver_code": "Query: {\n parseIntSafe: (_, {input}) => {\n const n = Number(input);\n if (Number.isNaN(n)) return null;\n return Math.trunc(n);\n }\n}", "expected_response": "{\"data\":{\"parseIntSafe\":null}}", "schema_definition": "...
cmsvtru0h002muvp2e30tnf1t
Submission 0TNF1T
{ "sample_query": "{ matrixTrace(size: 4) }", "resolver_code": "Query: {\n matrixTrace: (_, {size}) => {\n let sum = 0;\n for (let i = 0; i < size; i++) { sum += i * size + i; }\n return sum;\n }\n}", "expected_response": "{\"data\":{\"matrixTrace\":30}}", "schema_definition": "type Query { matrixTra...
cmsvtru0h002nuvp2co883s3a
Submission 883S3A
{ "sample_query": "{ winningOption }", "resolver_code": "Query: {\n winningOption: () => {\n const votes = [\n { option: \"A\", count: 12 },\n { option: \"B\", count: 30 },\n { option: \"C\", count: 7 }\n ];\n return votes.reduce((a, b) => (b.count > a.count ? b : a)).option;\n }\n}", "e...
cmsvtru0h002ouvp2bxizop09
Submission IZOP09
{ "sample_query": "{ isPalindrome(s: \"A man a plan a canal Panama\") }", "resolver_code": "Query: {\n isPalindrome: (_, {s}) => {\n const clean = s.toLowerCase().replace(/[^a-z0-9]/g, '');\n return clean === clean.split('').reverse().join('');\n }\n}", "expected_response": "{\"data\":{\"isPalindrome\":tr...
cmsvtru0h002puvp2g55gs8ly
Submission 5GS8LY
{ "sample_query": "{ findRecord(id: \"nonexistent\") }", "resolver_code": "Query: {\n findRecord: (_, {id}) => {\n const records = [\n { id: \"r1\", value: \"first\" },\n { id: \"r2\", value: \"second\" }\n ];\n const record = records.find(r => r.id === id);\n if (!record) throw new Error('re...
cmsvtru0h002quvp2ou2auy6l
Submission 2AUY6L
{ "sample_query": "{ sumEvenNumbers(upTo: 20) }", "resolver_code": "Query: {\n sumEvenNumbers: (_, {upTo}) => {\n let total = 0;\n for (let i = 2; i <= upTo; i += 2) { total += i; }\n return total;\n }\n}", "expected_response": "{\"data\":{\"sumEvenNumbers\":110}}", "schema_definition": "type Query {...
cmsvtru0h002ruvp2zgmk6m8z
Submission MK6M8Z
{ "sample_query": "{ mergeArrays(a: [3, 1, 2], b: [2, 4, 1]) }", "resolver_code": "Query: {\n mergeArrays: (_, {a, b}) => [...new Set([...a, ...b])].sort((x, y) => x - y)\n}", "expected_response": "{\"data\":{\"mergeArrays\":[1,2,3,4]}}", "schema_definition": "type Query { mergeArrays(a: [Int!]!, b: [Int!]!): ...
cmsw3ccd7005juvp2uh2ty2l7
Submission 2TY2L7
{ "sample_query": "{\n library {\n __typename\n ...NodeBits\n ... on Asset { size: bytes }\n ... on Photo { width }\n ... on Clip { seconds }\n }\n byteTotal\n}\nfragment NodeBits on Node { id }", "resolver_code": "Query: {\n library: () => [\n { __typename: \"Photo\", id: \"p-1\", bytes: 2048...
cmsw3ccd7005kuvp2o3en9qdq
Submission EN9QDQ
{ "sample_query": "{ ingest(doc: {name: \"sensor-1\", readings: [1, 2, 3], meta: {unit: \"C\", scale: 0.5}}) { accepted keys echo } }", "resolver_code": "Query: {\n ingest: (_parent, args) => {\n const keys = Object.keys(args.doc).sort();\n return {\n accepted: keys.length > 0 && !args.strict,\n ke...
cmsw3ccd7005luvp2axnnw1s1
Submission NNW1S1
{ "sample_query": "{ alarms { code level } }", "resolver_code": "Query: {\n alarms: () => [\n { code: \"PSU-1\", level: \"LOW\" },\n { code: \"FAN-3\", level: \"HIGH\" },\n { code: \"TMP-9\", level: \"CRITICAL\" }\n ]\n}", "expected_response": "{\"errors\": [{\"message\": \"Enum \\\"Severity\\\" cannot...
cmsw3ccd7005muvp208t326qp
Submission T326QP
{ "sample_query": "{ report { name sections { title words } } }", "resolver_code": "Query: {\n report: () => ({\n name: \"Q3 rollup\",\n sections: [\n { title: \"Intro\", words: 120 },\n { title: null, words: 340 },\n { title: \"Outlook\", words: 90 }\n ]\n })\n}", "expected_response": "...
cmsw3ccd7005nuvp2dltn0127
Submission TN0127
{ "sample_query": "mutation { first: bump { value step } big: bump(by: 5) { value step } wipe: reset { value step } last: bump(by: 2) { value step } }", "resolver_code": "Query: { tally: () => ({ name: \"hits\", value: 0, step: 0 }) },\nMutation: (function () {\n let value = 0;\n let step = 0;\n return {\n bu...
cmsw3ccd7005ouvp23hex84vj
Submission EX84VJ
{ "sample_query": "{ deck { __typename ... on Article { headline } ... on Video { minutes } } }", "resolver_code": "Query: {\n deck: () => [\n { __typename: \"Article\", headline: \"Ballast water rules\" },\n { __typename: \"Podcast\", minutes: 42 }\n ]\n}", "expected_response": "{\"errors\": [{\"message\...
cmsw3ccd7005puvp2xabwhdd2
Submission BWHDD2
{ "sample_query": "{\n notes {\n id\n body @highlight(colour: \"cyan\")\n ...Flags @audit\n hidden: body @include(if: false)\n }\n}\nfragment Flags on Note { pinned @audit }", "resolver_code": "Query: {\n notes: () => [\n { id: \"n-1\", body: \"check ballast pump\", pinned: true },\n { id: \"n-...
cmsw3ccd7005quvp2eth9o02v
Submission H9O02V
{ "sample_query": "{\n tenant(slug: \"acme\") {\n slug\n open: projects(status: OPEN) { key busy: buckets(minItems: 2) { name items } total }\n every: projects { key status total }\n }\n missing: tenant(slug: \"nobody\") { slug }\n}", "resolver_code": "Query: {\n tenant: (_parent, args) => {\n const...
cmsw3ccd7005ruvp2pbdjnzqz
Submission DJNZQZ
{ "sample_query": "{ search(tags: [\"hull\", null, \"keel\"]) { tag rank } }", "resolver_code": "Query: {\n search: (_parent, args) =>\n args.tags.slice(0, args.limit).map((tag, i) => ({ tag: tag, rank: i + 1 }))\n}", "expected_response": "{\"errors\": [{\"message\": \"Expected value of type \\\"String!\\\", ...
cmsw3ccd7005suvp2gfhsq5v3
Submission HSQ5V3
{ "sample_query": "{ device { id label two: average three: average(window: 3) all: average(window: 4) readings } }", "resolver_code": "Query: {\n device: () => ({\n id: \"dev-9\",\n readings: [3, 5, 8, 13],\n average: function (args) {\n const w = this.readings.slice(-args.window);\n return Math...
cmsw3ccd7005tuvp2uaxgkn36
Submission XGKN36
{ "sample_query": "{\n quote(shipments: [\n {carrier: \"ROAD\", lines: [{sku: \"BOLT\", qty: 4, weight: 0.25}, {sku: \"NUT\", weight: 0.05}]},\n {carrier: \"AIR\", unit: LB, lines: [{sku: \"CASE\", qty: 2, weight: 10}]}\n ]) {\n carrier unit pieces totalKg lines { sku qty weightKg }\n }\n}", "resolver_c...
cmsw3ccd7005uuvp2eff4x1b8
Submission F4X1B8
{ "sample_query": "{\n facilities {\n __typename\n ... on Berth { code metres: lengthM }\n ... on Crane { code reachM }\n ... on Silo { code tonnes }\n }\n}", "resolver_code": "Query: {\n facilities: () => [\n { __typename: \"Berth\", code: \"B-1\", lengthM: 240.5 },\n { __typename: \"Crane\", ...
cmsw3ccd7005vuvp2z0h8xtnv
Submission H8XTNV
{ "sample_query": "{\n fallback: lookup(where: {term: \"a\"}) { term size sort rows }\n partial: lookup(where: {term: \"o\", page: {size: 2}}) { term size sort rows }\n explicit: lookup(where: {term: \"e\", page: {size: 5, sort: ASC}}) { term size sort rows }\n}", "resolver_code": "Query: {\n lookup: (_parent, ...
cmsw3ccd7005wuvp24u7myf20
Submission 7MYF20
{ "sample_query": "{ member(by: {slug: \"ada\", email: \"ada@example.org\"}) { id slug email } }", "resolver_code": "Query: {\n member: (_parent, args) => {\n const set = Object.keys(args.by).filter((k) => args.by[k] != null);\n if (set.length !== 1) {\n throw new Error(\"Selector requires exactly one k...
cmsw3ccd7005xuvp268bdaqtw
Submission BDAQTW
{ "sample_query": "{\n root {\n ...Bits\n children { ...Bits children { ...Bits children { ...Bits } } }\n }\n}\nfragment Bits on Node { name path depth leafCount }", "resolver_code": "Query: {\n root: () => ({\n name: \"catalogue\", parent: null,\n children: [\n { name: \"tools\", children: [\n...
cmsw3ccd7005yuvp248pr96bl
Submission PR96BL
{ "sample_query": "{ core ledger { opening movements closing } }", "resolver_code": "Query: {\n core: () => \"base\",\n ledger: () => ({ opening: 100, movements: [-30, 12, 45, -7] })\n},\nLedger: {\n closing: (ledger) => ledger.movements.reduce((a, b) => a + b, ledger.opening)\n}", "expected_response": "{\"dat...
cmsw3ccd7005zuvp2n7unoiwo
Submission UNOIWO
{ "sample_query": "{\n fleet {\n __typename code capacity\n pct: utilisation\n exact: utilisation(rounded: false)\n ... on Truck { axles }\n ... on Barge { draftM }\n }\n}", "resolver_code": "Query: {\n fleet: () => {\n class Carrier {\n constructor(code, capacity, load) { this.code = code...
cmsw3ccd70060uvp2vfahc2wy
Submission AHC2WY
{ "sample_query": "{\n fallback: histogram { level count }\n widened: histogram(levels: [DEBUG, INFO, WARN, ERROR]) { level count }\n single: histogram(levels: INFO, minCount: 20) { level count }\n}", "resolver_code": "Query: {\n histogram: (_parent, args) => {\n const counts = { DEBUG: 0, INFO: 12, WARN: 3,...
cmsw3ccd70061uvp2imo8ey9d
Submission O8EY9D
{ "sample_query": "{\n sydOre: rows(where: {all: [{field: \"port\", equals: \"SYD\"}, {field: \"cargo\", equals: \"ore\"}]}) { id port cargo }\n notGrain: rows(where: {not: {field: \"cargo\", equals: \"grain\"}}) { id cargo }\n either: matched(where: {any: [{field: \"port\", equals: \"MEL\"}, {field: \"port\", equ...
cmsw3ccd70062uvp2gtm6eys2
Submission M6EYS2
{ "sample_query": "{ gauges { name zero blank off missing note samples } }", "resolver_code": "Query: {\n gauges: () => [\n { name: \"a\", zero: 0, blank: \"\", off: false, missing: null, note: undefined, samples: [0, null, 2] },\n { name: \"b\", zero: 7, blank: \"x\", off: true, missing: \"here\", samples: ...
cmswrp3kd006tuvp22uyis43b
Submission YIS43B
{ "sample_query": "{ lowStock(threshold: 5) { name stock discountedPrice(pct: 10) } }", "resolver_code": "Query: {\n lowStock: (_, { threshold }) => {\n const products = [\n { id: \"p1\", name: \"Widget\", price: 9.99, stock: 3 },\n { id: \"p2\", name: \"Gadget\", price: 19.99, stock: 50 },\n { i...
cmswrp3kd006uuvp2ik4565is
Submission 4565IS
{ "sample_query": "{ category(id: \"1\") { name children { name children { name } } } }", "resolver_code": "Query: {\n category: (_, { id }) => {\n const all = [\n { id: \"1\", name: \"Electronics\", parentId: null },\n { id: \"2\", name: \"Phones\", parentId: \"1\" },\n { id: \"3\", name: \"Lapt...
cmswrp3kd006vuvp2bvnul580
Submission NUL580
{ "sample_query": "mutation { increment(name: \"visits\", amount: 7) { name value } }", "resolver_code": "Query: { _empty: () => null },\nMutation: {\n increment: (_, { name, amount }) => {\n if (amount <= 0) {\n throw new Error(\"amount must be positive\");\n }\n const counters = { visits: 10, click...
cmswrp3kd006xuvp2yhseeid5
Submission SEEID5
{ "sample_query": "{ tickets { title priority } }", "resolver_code": "Query: {\n tickets: (_, { minPriority }) => {\n const order = { LOW: 0, MEDIUM: 1, HIGH: 2 };\n const all = [\n { id: \"t1\", title: \"Fix typo\", priority: \"LOW\" },\n { id: \"t2\", title: \"Server down\", priority: \"HIGH\" },...
cmswrp3kd0073uvp2mcobr9oq
Submission OBR9OQ
{ "sample_query": "{ user { id profile { bio } } }", "resolver_code": "Query: {\n user: () => ({ id: \"u1\" })\n},\nUser: {\n profile: () => { throw new Error(\"profile service unavailable\"); }\n}", "expected_response": "{\"errors\": [{\"message\": \"profile service unavailable\"}]}", "schema_definition": "t...
cmswrp3kd0079uvp2v3sxs81r
Submission SXS81R
{ "sample_query": "{ invoice { subtotal withTax: total(includeTax: true) noTax: total(includeTax: false) } }", "resolver_code": "Query: {\n invoice: () => ({ id: \"inv1\", subtotal: 100.0 })\n},\nInvoice: {\n total: (inv, { includeTax }) => includeTax ? Math.round(inv.subtotal * 1.08 * 100) / 100 : inv.subtotal\n...
cmswrp3kd007cuvp21qeozbcd
Submission EOZBCD
{ "sample_query": "mutation { completeTodo(id: \"2\") { id done } }", "resolver_code": "Query: { _empty: () => null },\nMutation: {\n completeTodo: (_, { id }) => {\n const todos = [\n { id: \"1\", text: \"Buy milk\", done: false },\n { id: \"2\", text: \"Walk dog\", done: false },\n { id: \"3\",...
cmswrp3ke007huvp2m4vog058
Submission VOG058
{ "sample_query": "{ company { name department(name: \"Engineering\") { name manager { name } } } }", "resolver_code": "Query: {\n company: () => ({ name: \"Acme Corp\" })\n},\nCompany: {\n department: (_, { name }) => {\n const departments = {\n Engineering: { name: \"Engineering\", managerName: \"Priya\...
cmsx3es7n003cx3p2536ndmyi
Submission 6NDMYI
{ "sample_query": "query {\n order(id: \"1\") {\n status\n total\n items {\n quantity\n subtotal\n product { name price }\n }\n }\n}", "resolver_code": "Query: {\n order: (_, { id }) => {\n const orders = {\n \"1\": { id: \"1\", status: \"SHIPPED\", items: [ { productId: \"p1\"...
cmsx3es7n003ex3p2rp34g1ed
Submission 34G1ED
{ "sample_query": "query {\n players(minWins: 5) {\n name\n wins\n losses\n winRate\n }\n}", "resolver_code": "Query: {\n players: (_, { minWins }) => {\n const players = [\n { id: \"1\", name: \"Nova\", wins: 10, losses: 2 },\n { id: \"2\", name: \"Blaze\", wins: 3, losses: 7 },\n ...
cmsx3es7n003fx3p27f978aar
Submission 978AAR
{ "sample_query": "mutation {\n withdraw(accountId: \"a1\", amount: 500) {\n balance\n }\n}", "resolver_code": "Query: {\n account: (_, { id }) => {\n const accounts = { a1: { id: \"a1\", owner: \"Alice\", balance: 100, transactions: [ { id: \"t1\", type: \"DEPOSIT\", amount: 100 } ] } };\n return accou...
cmsx3es7n003gx3p21oqtjjmb
Submission QTJJMB
{ "sample_query": "query {\n appointment(id: \"9\") {\n date\n patient { name }\n }\n}", "resolver_code": "Query: {\n appointmentsByStatus: (_, { status }) => {\n const appts = [\n { id: \"1\", status: \"SCHEDULED\", doctorId: \"d1\", patientId: \"p1\", date: \"2026-08-20\" },\n { id: \"2\", s...
cmsx3es7n003hx3p2akoig43e
Submission OIG43E
{ "sample_query": "query {\n shipments(status: IN_TRANSIT) {\n id\n totalWeight\n estimatedDays\n packages { description weightKg }\n }\n}", "resolver_code": "Query: {\n shipments: (_, { status }) => {\n const shipments = [\n { id: \"s1\", status: \"IN_TRANSIT\", distanceKm: 1200, packageIds:...
cmsx3es7n003ix3p2y8n7285k
Submission N7285K
{ "sample_query": "query {\n listings(minPrice: 300000, type: HOUSE) {\n id\n price\n agent { name }\n }\n}", "resolver_code": "Query: {\n listings: (_, { minPrice, maxPrice, type }) => {\n const listings = [\n { id: \"l1\", type: \"HOUSE\", price: 450000, agentId: \"a1\" },\n { id: \"l2\",...
cmsx3es7n003jx3p2tsm0zu3w
Submission M0ZU3W
{ "sample_query": "query {\n student(id: \"st1\") {\n name\n gpa\n enrollments {\n grade\n course { title credits }\n }\n }\n}", "resolver_code": "Query: {\n student: (_, { id }) => {\n const students = {\n st1: { id: \"st1\", name: \"Dana\", enrollments: [ { courseId: \"c1\", grade...
cmsx3es7n003kx3p21sh85ghw
Submission H85GHW
{ "sample_query": "query {\n devices(status: ONLINE) {\n id\n averageReading\n readings { value }\n }\n}", "resolver_code": "Query: {\n devices: (_, { status }) => {\n const devices = [\n { id: \"d1\", status: \"ONLINE\", readingValues: [22.5, 23.1, 21.9] },\n { id: \"d2\", status: \"OFFLIN...
cmsx3es7n003mx3p233rrpirv
Submission RRPIRV
{ "sample_query": "query {\n loan(id: \"ln2\") {\n dueDate\n book { title }\n }\n}", "resolver_code": "Query: {\n loan: (_, { id }) => {\n const loans = [\n { id: \"ln1\", bookId: \"b1\", dueDate: \"2026-09-01\" },\n { id: \"ln2\", bookId: \"missing\", dueDate: \"2026-09-05\" }\n ];\n re...
cmsx3es7o003nx3p2lne995zr
Submission E995ZR
{ "sample_query": "query {\n order(id: \"o1\") {\n subtotal\n tax\n total\n lines {\n qty\n lineTotal\n item { name }\n }\n }\n}", "resolver_code": "Query: {\n order: (_, { id }) => {\n const orders = { o1: { id: \"o1\", lines: [ { itemId: \"mi1\", qty: 2 }, { itemId: \"mi2\", qt...
cmsx3es7o003ox3p212449iqn
Submission 449IQN
{ "sample_query": "query {\n booking(id: \"bk1\") {\n seatClass\n price\n flight { code }\n }\n}", "resolver_code": "Query: {\n booking: (_, { id }) => {\n const bookings = { bk1: { id: \"bk1\", flightId: \"fl1\", seatClass: \"BUSINESS\" } };\n return bookings[id] || null;\n }\n},\nBooking: {\n ...
cmsx3es7o003px3p2ux94mvuc
Submission 94MVUC
{ "sample_query": "query {\n jobs(remote: true) {\n title\n level\n company { name }\n }\n}", "resolver_code": "Query: {\n jobs: (_, { remote, level }) => {\n const jobs = [\n { id: \"j1\", title: \"Backend Engineer\", remote: true, level: \"SENIOR\", companyId: \"c1\" },\n { id: \"j2\", ti...
cmsx3es7o003qx3p2qh0glkce
Submission 0GLKCE
{ "sample_query": "query {\n workout(id: \"w1\") {\n totalCalories\n entries {\n minutes\n caloriesBurned\n exercise { name }\n }\n }\n}", "resolver_code": "Query: {\n workout: (_, { id }) => {\n const workouts = { w1: { id: \"w1\", entries: [ { exerciseId: \"e1\", minutes: 30 }, { exe...
cmsx3es7o003rx3p28ytiydyk
Submission TIYDYK
{ "sample_query": "query {\n city(id: \"c1\") {\n avgTemp\n alertLevel\n forecasts { day tempC }\n }\n}", "resolver_code": "Query: {\n city: (_, { id }) => {\n const cities = { c1: { id: \"c1\", name: \"Riverdale\", temps: [ { day: \"Mon\", tempC: 22 }, { day: \"Tue\", tempC: 38 }, { day: \"Wed\", te...
cmsx3es7o003sx3p2cqwsczzv
Submission WSCZZV
{ "sample_query": "mutation {\n makePayment(loanId: \"ln1\", amount: 2000) {\n remainingBalance\n }\n}", "resolver_code": "Query: {\n loan: (_, { id }) => {\n const loans = { ln1: { id: \"ln1\", principal: 1000, paid: 200 } };\n return loans[id] || null;\n }\n},\nMutation: {\n makePayment: (_, { loanI...
cmsx3es7o003ux3p2nmdkkq3p
Submission DKKQ3P
{ "sample_query": "query {\n pets(status: AVAILABLE) {\n name\n shelter { name }\n }\n}", "resolver_code": "Query: {\n pets: (_, { status }) => {\n const pets = [\n { id: \"p1\", name: \"Rex\", status: \"AVAILABLE\", shelterId: \"s1\" },\n { id: \"p2\", name: \"Milo\", status: \"ADOPTED\", she...
cmsx3es7o003vx3p24cmfjznp
Submission MFJZNP
{ "sample_query": "query {\n rental(id: \"r1\") {\n days\n cost\n vehicle { make }\n }\n}", "resolver_code": "Query: {\n rental: (_, { id }) => {\n const rentals = { r1: { id: \"r1\", vehicleId: \"v1\", days: 5 } };\n return rentals[id] || null;\n }\n},\nRental: {\n vehicle: (r) => {\n const ...
cmsx3es7o003wx3p2qg1kjgfy
Submission 1KJGFY
{ "sample_query": "query {\n reservation(id: \"res2\") {\n nights\n room { type }\n }\n}", "resolver_code": "Query: {\n reservation: (_, { id }) => {\n const reservations = [\n { id: \"res1\", roomId: \"rm1\", nights: 3 },\n { id: \"res2\", roomId: \"rmX\", nights: 2 }\n ];\n return rese...
cmsx3es7o003xx3p2efh9gji1
Submission H9GJI1
{ "sample_query": "query {\n policy(id: \"pol1\") {\n holder\n totalApproved\n claims { status amount }\n }\n}", "resolver_code": "Query: {\n policy: (_, { id }) => {\n const policies = { pol1: { id: \"pol1\", holder: \"Grace\", claimData: [ { id: \"cl1\", status: \"APPROVED\", amount: 500 }, { id: \...
cmsx3es7o003yx3p2ll41is47
Submission 41IS47
{ "sample_query": "query {\n standings {\n name\n points\n }\n}", "resolver_code": "Query: {\n standings: () => {\n const teams = [\n { id: \"tm1\", name: \"Falcons\", wins: 5, draws: 2, losses: 1 },\n { id: \"tm2\", name: \"Wolves\", wins: 3, draws: 3, losses: 2 },\n { id: \"tm3\", name:...
cmsx3es7o003zx3p20d4mzxnp
Submission 4MZXNP
{ "sample_query": "query {\n recipes(cuisine: ITALIAN) {\n title\n totalCalories\n ingredients { name }\n }\n}", "resolver_code": "Query: {\n recipes: (_, { cuisine }) => {\n const recipes = [\n { id: \"r1\", title: \"Margherita Pizza\", cuisine: \"ITALIAN\", ingredientData: [ { name: \"Dough\",...
cmsx3es7o0040x3p2m0cc5n27
Submission CC5N27
{ "sample_query": "mutation {\n moveItem(itemId: \"it1\", toBinId: \"bin1\", quantity: 20) {\n currentLoad\n }\n}", "resolver_code": "Query: {\n bin: (_, { id }) => {\n const bins = { bin1: { id: \"bin1\", capacity: 100, currentLoad: 90 } };\n return bins[id] || null;\n }\n},\nMutation: {\n moveItem: ...
cmsx3es7o0041x3p24dk0o9to
Submission K0O9TO
{ "sample_query": "query {\n event(id: \"ev1\") {\n name\n availableTickets\n status\n venue { name }\n }\n}", "resolver_code": "Query: {\n event: (_, { id }) => {\n const events = { ev1: { id: \"ev1\", name: \"Indie Fest\", capacity: 200, sold: 180, venueId: \"v1\" } };\n return events[id] || ...
cmsx3es7o0042x3p2h2lrllw2
Submission LRLLW2
{ "sample_query": "query {\n deals(stage: NEGOTIATION) {\n value\n probability\n weightedValue\n contact { name }\n }\n}", "resolver_code": "Query: {\n deals: (_, { stage }) => {\n const deals = [\n { id: \"d1\", stage: \"NEGOTIATION\", value: 10000, probability: 0.6, contactId: \"ct1\" },\n ...
cmsx3es7o0043x3p2v3xwze95
Submission XWZE95
{ "sample_query": "query {\n invoice(id: \"inv1\") {\n daysUsed\n proratedCharge\n plan { tier monthlyPrice }\n }\n}", "resolver_code": "Query: {\n invoice: (_, { id }) => {\n const invoices = { inv1: { id: \"inv1\", planId: \"pl2\", daysUsed: 10 } };\n return invoices[id] || null;\n }\n},\nInvoi...
cmsx3es7o0044x3p21p8p7fa5
Submission 8P7FA5
{ "sample_query": "query {\n poll(id: \"pl1\") {\n totalVotes\n options { label votes percentage }\n }\n}", "resolver_code": "Query: {\n poll: (_, { id }) => {\n const polls = { pl1: { id: \"pl1\", question: \"Best season?\", optionData: [ { id: \"o1\", label: \"Summer\", votes: 30 }, { id: \"o2\", labe...
cmsx3es7o0045x3p2d2at8rgp
Submission AT8RGP
{ "sample_query": "query {\n channel(id: \"ch1\") {\n name\n messageCount\n messages {\n text\n sender { username }\n }\n }\n}", "resolver_code": "Query: {\n channel: (_, { id }) => {\n const channels = { ch1: { id: \"ch1\", name: \"general\", messageData: [ { id: \"m1\", text: \"Hello!\...
cmsx3es7o0046x3p2e8p8j8h6
Submission P8J8H6
{ "sample_query": "query {\n purchaseOrders(status: SHIPPED) {\n quantity\n unitCost\n totalCost\n supplier { name }\n }\n}", "resolver_code": "Query: {\n purchaseOrders: (_, { status }) => {\n const pos = [\n { id: \"po1\", status: \"SHIPPED\", supplierId: \"sp1\", quantity: 100, unitCost: 2...
cmsx3es7o0047x3p2c5428h4m
Submission 428H4M
{ "sample_query": "query {\n researcher(id: \"rs1\") {\n name\n hIndex\n publications { title citations }\n }\n}", "resolver_code": "Query: {\n researcher: (_, { id }) => {\n const researchers = { rs1: { id: \"rs1\", name: \"Dr. Chen\", pubData: [ { id: \"pub1\", title: \"Paper A\", citations: 15 }, ...
cmsx3es7o0048x3p2ygh3ml8o
Submission H3ML8O
{ "sample_query": "mutation {\n reserveSpot(lotId: \"lot1\", spotId: \"sp1\") {\n availableSpots\n spots { id status }\n }\n}", "resolver_code": "Query: {\n parkingLot: (_, { id }) => {\n const lots = { lot1: { id: \"lot1\", name: \"Main Garage\", spotData: [ { id: \"sp1\", status: \"FREE\" }, { id: \"s...
cmsx3es7o0049x3p2keayx8pt
Submission AYX8PT
{ "sample_query": "query {\n plant(id: \"pp1\") {\n name\n efficiency\n readings { hour outputMw }\n }\n}", "resolver_code": "Query: {\n plant: (_, { id }) => {\n const plants = { pp1: { id: \"pp1\", name: \"Solar One\", capacityMw: 500, readingData: [ { hour: 8, outputMw: 300 }, { hour: 12, outputMw...
cmsx7cmeh001lkup2ls6y6gce
Submission 6Y6GCE
{ "sample_query": "{ inbox { id ... on Email { subject } ... on SMS { phone } } }", "resolver_code": "Query: { inbox: () => [{id:'1',subject:'Hi',__typename:'Email'},{id:'2',phone:'555',__typename:'SMS'}] }", "expected_response": "{\"data\":{\"inbox\":[{\"id\":\"1\",\"subject\":\"Hi\"},{\"id\":\"2\",\"phone\":\"5...
cmsx7cmeh001mkup2km7656mt
Submission 7656MT
{ "sample_query": "{ search(q: \"d\") { ... on Book { title } ... on Author { name } } }", "resolver_code": "Query: { search: (_, {q}) => [{title:'Dune',__typename:'Book'},{name:'Herbert',__typename:'Author'}] }", "expected_response": "{\"data\":{\"search\":[{\"title\":\"Dune\"},{\"name\":\"Herbert\"}]}}", "sch...
cmsx7cmeh001rkup24v7xuus2
Submission 7XUUS2
{ "sample_query": "{ shapes { area ... on Circle { radius } ... on Square { side } } }", "resolver_code": "Query: { shapes: () => [{area:12.56,radius:2,__typename:'Circle'},{area:9,side:3,__typename:'Square'}] }", "expected_response": "{\"data\":{\"shapes\":[{\"area\":12.56,\"radius\":2},{\"area\":9,\"side\":3}]}...
cmsx7cmeh002akup2c3znlyt3
Submission ZNLYT3
{ "sample_query": "{ pets { name ... on Dog { breed } ... on Cat { indoor } } }", "resolver_code": "Query: { pets: () => [{name:'Rex',breed:'Lab',__typename:'Dog'},{name:'Mia',indoor:true,__typename:'Cat'}] }", "expected_response": "{\"data\":{\"pets\":[{\"name\":\"Rex\",\"breed\":\"Lab\"},{\"name\":\"Mia\",\"ind...
cmsx7cmeh002ekup204k59boa
Submission K59BOA
{ "sample_query": "{ feed { __typename ... on Vid { secs } ... on Img { url } } }", "resolver_code": "Query: { feed: () => [{url:'a.png',__typename:'Img'},{url:'b.mp4',secs:30,__typename:'Vid'}] }", "expected_response": "{\"data\":{\"feed\":[{\"__typename\":\"Img\",\"url\":\"a.png\"},{\"__typename\":\"Vid\",\"sec...
cmsxlj7v900jekup2y6hms18p
Submission HMS18P
{ "sample_query": "{ trimmedSummary(values: [10,-5,18,8,20,1,25,9,32,7], threshold: 3, limit: 2) { values metric label flags } }", "resolver_code": "Query: { trimmedSummary: (_, {values, threshold, limit}) => { const s=[...values].sort((a,b)=>a-b), k=Math.min(limit,Math.floor((s.length-1)/2)), kept=s.slice(k,s.leng...
cmsxlj7v900jfkup263kz1sgo
Submission KZ1SGO
{ "sample_query": "{ winsorizedSpread(values: [11,-4,19,9,16,2,26,10,33,3], threshold: 4, limit: 3) { values metric label flags } }", "resolver_code": "Query: { winsorizedSpread: (_, {values, threshold, limit}) => { const s=[...values].sort((a,b)=>a-b),k=Math.min(limit,s.length-1),lo=s[k],hi=s[s.length-1-k],w=s.map...
cmsxlj7v900jgkup2qxr1jlx3
Submission R1JLX3
{ "sample_query": "{ rollingSpikeScan(values: [12,-3,20,5,17,3,27,11,29,4], threshold: 5, limit: 4) { values metric label flags } }", "resolver_code": "Query: { rollingSpikeScan: (_, {values, threshold, limit}) => { const out=[],flags=[]; for(let i=limit;i<values.length;i++){const base=values.slice(i-limit,i).reduc...
cmsxlj7v900jhkup2bpgkkdfx
Submission GKKDFX
{ "sample_query": "{ longestQualifiedRun(values: [13,-2,16,6,18,4,28,7,30,5], threshold: 6, limit: 5) { values metric label flags } }", "resolver_code": "Query: { longestQualifiedRun: (_, {values, threshold, limit}) => { let best=[],cur=[]; for(const x of values){if(x>=threshold){cur.push(x);if(cur.length>best.leng...
cmsxlj7v900jikup2ybj59we7
Submission J59WE7
{ "sample_query": "{ stableTopK(values: [14,-6,17,7,19,5,24,8,31,6], threshold: 7, limit: 2) { values metric label flags } }", "resolver_code": "Query: { stableTopK: (_, {values, threshold, limit}) => { const ranked=values.map((v,i)=>({v,i})).filter(x=>x.v>=threshold).sort((a,b)=>b.v-a.v||a.i-b.i).slice(0,limit);re...
cmsxlj7v900jjkup254uuxxma
Submission UUXXMA
{ "sample_query": "{ distinctFrequencyLeaders(values: [10,-5,18,8,20,1,25,9,32,7], threshold: 8, limit: 3) { values metric label flags } }", "resolver_code": "Query: { distinctFrequencyLeaders: (_, {values, threshold, limit}) => { const m=new Map();values.forEach((v,i)=>{const x=m.get(v)||{n:0,first:i};x.n++;m.set(...
cmsxlj7v900jkkup2n3138iz4
Submission 138IZ4
{ "sample_query": "{ boundedPairSums(values: [11,-4,19,9,16,2,26,10,33,3], threshold: 9, limit: 4) { values metric label flags } }", "resolver_code": "Query: { boundedPairSums: (_, {values, threshold, limit}) => { const pairs=[];for(let i=0;i<values.length;i++)for(let j=i+1;j<values.length;j++)if(values[i]+values[j...
cmsxlj7v900jlkup2wknym3vd
Submission NYM3VD
{ "sample_query": "{ maximumWindow(values: [12,-3,20,5,17,3,27,11,29,4], threshold: 3, limit: 5) { values metric label flags } }", "resolver_code": "Query: { maximumWindow: (_, {values, threshold, limit}) => { let best=null;for(let i=0;i+limit<=values.length;i++){const sum=values.slice(i,i+limit).reduce((a,b)=>a+b,...
cmsxlj7v900jmkup2lyyppxft
Submission YPPXFT
{ "sample_query": "{ minimumCoverPrefix(values: [13,-2,16,6,18,4,28,7,30,5], threshold: 4, limit: 2) { values metric label flags } }", "resolver_code": "Query: { minimumCoverPrefix: (_, {values, threshold, limit}) => { let sum=0,end=-1;for(let i=0;i<Math.min(limit,values.length);i++){sum+=values[i];if(sum>=threshol...
cmsxlj7v900jnkup2pxou74x7
Submission OU74X7
{ "sample_query": "{ alternatingExtrema(values: [14,-6,17,7,19,5,24,8,31,6], threshold: 5, limit: 3) { values metric label flags } }", "resolver_code": "Query: { alternatingExtrema: (_, {values, threshold, limit}) => { const r=[];for(let i=1;i<values.length-1;i++){const peak=values[i]>values[i-1]&&values[i]>values[...
cmsxlj7va00jokup2t1xyw53q
Submission XYW53Q
{ "sample_query": "{ inversionPressure(values: [10,-5,18,8,20,1,25,9,32,7], threshold: 6, limit: 4) { values metric label flags } }", "resolver_code": "Query: { inversionPressure: (_, {values, threshold, limit}) => { let count=0;const idx=[];for(let i=0;i<values.length;i++)for(let j=i+1;j<values.length;j++)if(value...