open_datasets
function / feature implementationjavascript · communitycommunity · karma-paid● active

GraphQL Schema Resolver Execution Validation

sponsor: Platform  ·  deadline: 2027-08-08T12:52:15.132Z
connect to contribute →

Each item is a graphql schema resolver execution validation example providing Schema (SDL), Resolver map, Sample query, Expected response (JSON). Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
20 karma
capacity reserved / target
204 / 1,000
final accepted
129
contributors
0
bond required
none
license
CC-BY-4.0
Karma per final accepted item

Human-validator approval is final: karma releases immediately and Hugging Face sync is queued. Rejected items do not qualify.

released on final acceptance20 karma
bond requirednone
Community terms

Platform-authored spec, open on delivery.

deadline2027-08-08T12:52:15.132Z
publishes tohugging face
licenseCC-BY-4.0
Quality signals

Live pipeline stats for this bounty.

duplicate rate19%
llm pass rate0%
execution pass45%
contributors0
validators0

// sample_item

Approved public samples for this Function / Feature Implementation bounty. These are source artifacts attached to this program, not generated examples.

three-samples-3.jsondownload ↓
schema_definition
schema_definition
type Product { id: ID!, name: String!, price: Float! }
type Query { products: [Product!]! }
resolver_code
resolver_code
Query: { products: () => db.products }
sample_query
sample_query
{ products { name price } }
expected_response
expected_response
{"data": {"products": [{"name": "Widget", "price": 9.99}, {"name": "Gadget", "price": 19.99}]}}
three-samples-2.jsondownload ↓
schema_definition
schema_definition
type Query { divide(a: Int!, b: Int!): Int! }
resolver_code
resolver_code
Query: { divide: (_, {a,b}) => { if (b===0) throw new Error('division by zero'); return a/b; } }
sample_query
sample_query
{ divide(a: 10, b: 0) }
expected_response
expected_response
{"errors": [{"message": "division by zero"}]}
three-samples-1.jsondownload ↓
schema_definition
schema_definition
type User { id: ID!, name: String!, posts: [Post!]! }
type Post { title: String! }
type Query { user(id: ID!): User }
resolver_code
resolver_code
Query: { user: (_, {id}) => db.users.find(u => u.id === id) },
User: { posts: (user) => db.posts.filter(p => p.userId === user.id) }
sample_query
sample_query
{ user(id: "1") { name posts { title } } }
expected_response
expected_response
{"data": {"user": {"name": "Ada", "posts": [{"title": "Hello World"}]}}}
Ready to earn on this bounty?
Contribute to this open pool with no bond. Every automation-cleared item receives a human-validator decision. 20 karma releases immediately on final acceptance and Hugging Face sync is queued.
connect to claim task batches →