# Matrix

Documentation for the Matrix Service.

This service is interfaced by:

# API

# Collections

Quering collections can be done with:

{
    collections(limit: 10) {
        name
        label
    }
}

You can also query a single collection.

{
    collection(name: "std") {
        label
    }
}

# Types

Quering types can be done with:

{
    type(name: "std.Person") {
        label
        image
    }
}

# Instances

Querying instance data can be done with.

{
    instance(ref: "std.Person#00001") {
        
    }
}

GraphQL requests will look something like this:

{
    types {
        name
        fields {
            name
            type
        }
        instances {
            id
        }
    }
}

Will return:

{
    "types": [
        {
            "name": "std.Person",
            "fields": [
                {
                    "name": "surname",
                    "type": "String"
                },
                ...
            ],
            "instances": [
                {
                    "id": "0000001"
                }
            ]
        }
    ]
}