~shockham/subsist

PoC for a JSON based field query structure
fdde3ff6 — shockham 7 days ago
add .gitignore for coverage files
8df6f803 — shockham 10 months ago
add initial function to return schema as JSON
d0f933eb — shockham 10 months ago
more reliable default extractValue test

clone

read-only
https://git.sr.ht/~shockham/subsist
read/write
git@git.sr.ht:~shockham/subsist

You can also use your local clone with git send-email.

#subsist

Minimalist querying. Work in progress.

#Specification

Work in progress

Example query:

{
    "query": {
        "Name": true,
        "Age": true,
        "Tags": true,
        "Address": { "Code": true }, 
        "Posts": [{ "Title": true, "Body": true}]
    },
    "variables": {}
}

Expected response:

{
    "data": {
        "Address": {
            "Code": "11234"
        },
        "Age": 33,
        "Name": "real person",
        "Posts": [
            {
                "Body":"this is the post body",
                "Title":"helloo"
            }
        ],
        "Tags": ["happy","fun"]
    },
    "errors":null
}

#To do

  • error handling: add to error field in return
  • introspection/return schema
  • improve docs
  • write specification
  • pass context added to by parent to children