apollo-language-server 0.6.0

A GraphQL language server with first-class support for Apollo Federation
Documentation
// GraphQL Keywords
pub const DIRECTIVE: &str = "directive";
pub const ENUM: &str = "enum";
pub const EXTEND: &str = "extend";
pub const INPUT: &str = "input";
pub const INTERFACE: &str = "interface";
pub const SCALAR: &str = "scalar";
pub const SCHEMA: &str = "schema";
pub const TYPE: &str = "type";
pub const UNION: &str = "union";

pub const GRAPHQL_KEYWORDS: [&str; 8] = [
    ENUM, DIRECTIVE, INPUT, INTERFACE, SCHEMA, SCALAR, TYPE, UNION,
];

// Built-in directives
pub const DEPRECATED_DIRECTIVE: &str = "deprecated";
// pub const INCLUDE_DIRECTIVE: &str = "include";
// pub const SKIP_DIRECTIVE: &str = "skip";
// pub const SPECIFIED_BY_DIRECTIVE: &str = "specifiedBy";

// Directive keywords
pub const REPEATABLE: &str = "repeatable";
pub const ON: &str = "on";

// Directive Locations
pub const QUERY_LOC: &str = "QUERY";
pub const MUTATION_LOC: &str = "MUTATION";
pub const SUBSCRIPTION_LOC: &str = "SUBSCRIPTION";
pub const FIELD_LOC: &str = "FIELD";
pub const FRAGMENT_DEFINITION_LOC: &str = "FRAGMENT_DEFINITION";
pub const FRAGMENT_SPREAD_LOC: &str = "FRAGMENT_SPREAD";
pub const INLINE_FRAGMENT_LOC: &str = "INLINE_FRAGMENT";
pub const VARIABLE_DEFINITION_LOC: &str = "VARIABLE_DEFINITION";
pub const SCHEMA_LOC: &str = "SCHEMA";
pub const SCALAR_LOC: &str = "SCALAR";
pub const OBJECT_LOC: &str = "OBJECT";
pub const FIELD_DEFINITION_LOC: &str = "FIELD_DEFINITION";
pub const ARGUMENT_DEFINITION_LOC: &str = "ARGUMENT_DEFINITION";
pub const INTERFACE_LOC: &str = "INTERFACE";
pub const UNION_LOC: &str = "UNION";
pub const ENUM_LOC: &str = "ENUM";
pub const ENUM_VALUE_LOC: &str = "ENUM_VALUE";
pub const INPUT_OBJECT_LOC: &str = "INPUT_OBJECT";
pub const INPUT_FIELD_DEFINITION_LOC: &str = "INPUT_FIELD_DEFINITION";

pub const DIRECTIVE_LOCATIONS: [&str; 19] = [
    QUERY_LOC,
    MUTATION_LOC,
    SUBSCRIPTION_LOC,
    FIELD_LOC,
    FRAGMENT_DEFINITION_LOC,
    FRAGMENT_SPREAD_LOC,
    INLINE_FRAGMENT_LOC,
    VARIABLE_DEFINITION_LOC,
    SCHEMA_LOC,
    SCALAR_LOC,
    OBJECT_LOC,
    FIELD_DEFINITION_LOC,
    ARGUMENT_DEFINITION_LOC,
    INTERFACE_LOC,
    UNION_LOC,
    ENUM_LOC,
    ENUM_VALUE_LOC,
    INPUT_OBJECT_LOC,
    INPUT_FIELD_DEFINITION_LOC,
];