A read-only GraphQL API for querying data about Star Wars Legion.
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.
The data backing this API comes directly from the src/data.json file from
@NicholasCBrown/legion-HQ-2.0.
Unless noted below, all query arguments allow for searching with regular expressions.
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
}
}The following fields will only match on exact values and will ignore regular expressions.
- commands
- id
- pips
- units
- id
- unique
- upgrades
- id
- unique