V2 API Public Examples

This page contains some example queries for the V2 GraphQL api. These are intended to be examples and as such may or may not be up to date. Check the GraphQL Playground for up to date documentation and schema.

GetPacksWithLatestVersion

query GetPacksWithLatestVersion {
    packs {
        data {
            id
            position
            name
            safeName
            latestVersion {
                id
                version
                minecraftVersion
                changelog
                isRecommended
                canUpdate
                createdAt
                updatedAt
                publishedAt
            }
        }
    }
}

SearchForPackByName

query SearchForPackByName {
    packsSearchName(name: "test%") {
        data {
            id
            position
            name
            safeName
            latestVersion {
                id
                version
                minecraftVersion
                changelog
                isRecommended
                canUpdate
                createdAt
                updatedAt
                publishedAt
            }
        }
    }
}

GetPackBySafeName

query GetPackBySafeName {
    packBySafeName(safeName: "TestPack") {
        id
        position
        name
        safeName
        latestVersion {
            id
            version
            minecraftVersion
            changelog
            isRecommended
            canUpdate
            createdAt
            updatedAt
            publishedAt
        }
    }
}
api/v2/examples/public.txt · Last modified: 2021/02/06 08:03 by ryantheallmighty
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0