# Queries

# Module

# module

Query a particular package by its name

param description
name name of the module
# example query
{
  module(name: "eggs") {
    name,
    owner,
    normalizedName,
    latestVersion,
    latestStableVersion,
    uploads {
      name
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12

Result:

{
  "data": {
    "package": {
      "name": "eggs",
      "owner": "Nest.land",
      "normalizedName": "eggs",
      "latestVersion": "v0.1.0",
      "latestStableVersion": "v0.1.0",
      "uploads": [
        { "name": "eggs" }
      ]
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# modules

Query all packages in the registry

# example query
{
  modules {
    name,
    owner,
    normalizedName,
    latestVersion,
    latestStableVersion,
    uploads {
      name
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12

Result:

{
  "data": {
    "modules": [
      {
        "name": "eggs",
        "owner": "Nest.land",
        "normalizedName": "eggs",
        "latestVersion": "v0.1.0",
        "latestStableVersion": "v0.1.0",
        "uploads": [
          { "name": "eggs@v0.0.0" },
          { "name": "eggs@v0.1.0" }
        ]
      },
      {
        "name": "autopilot",
        "owner": "divy",
        "normalizedName": "autopilot",
        "latestVersion": "v0.1.8",
        "latestStableVersion": "v0.1.8",
        "packageUploadNames": [
          { "name": "autopilot@v0.1.8" },
          { "name": "autopilot@v0.1.7" }
        ]
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

# User

# user

Query a particular package by their Nest.land api key.

param description
apiKey apiKey of the user
# example query
{
  user(apiKey: "<API-KEY>") {
    name,
  	createdAt,
    modules {
      name
      uploads {
        name
      }
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
{
  "data": {
    "user": {
      "name": "divy",
      "createdAt": "2020-06-27T10:15:55.670232Z".
      "modules": [
        {
          "name": "autopilot",
          "uploads": [
            { name: "autopilot@v0.1.2" },
            { name: "autopilot@v0.1.3" }
          ]
        }
      ]
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17