archives

command module
v1.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 6 Imported by: 0

README

Star Wars Legion Archives

A read-only GraphQL API for querying data about Star Wars Legion.

Access

The API is read only and does not require any authentication.

You can find the GraphQL Playground here: https://sw-legion-archives.herokuapp.com and the graphql endpoint can be found at https://sw-legion-archives.herokuapp.com/graphql.

Data

The data backing this API comes directly from the src/data.json file from @NicholasCBrown/legion-HQ-2.0.

Using the query argument

Unless noted below, all query arguments allow for searching with regular expressions.

Query syntax

All query argument values follow the same pattern where the field is placed to the left and the value is placed on the right and are separated using a colon.

Example: Query keywords where the description contains the word rally. By prefixing the search term with (?i) the search becomes case insensitive.

{
  keywords(query: "description:(?i)rally") {
    name
    description
  }
}
Fields that support only exact match values

The following fields will only match on exact values and will ignore regular expressions.

  • commands
    • id
    • pips
  • units
    • id
    • unique
  • upgrades
    • id
    • unique

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
gql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL