apollo-compiler 1.31.1

A compiler for the GraphQL query language.
Documentation
Schema {
    sources: {
        1: SourceFile {
            path: "built_in.graphql",
            source_text: include_str!("built_in.graphql"),
        },
        31: SourceFile {
            path: "0030_cyclical_nullable_input_objects.graphql",
            source_text: "type Query {\n    name: String\n    example(arg: First): Int\n}\n\ninput First {\n  second: Second\n  value: String\n}\n\ninput Second {\n  third: [Third!]!\n  value: String\n}\n\ninput Third {\n  fourth: Fourth\n  value: String\n}\n\ninput Fourth {\n  first: First\n}",
        },
    },
    schema_definition: SchemaDefinition {
        description: None,
        directives: [],
        query: Some(
            ComponentName {
                origin: Definition,
                name: "Query",
            },
        ),
        mutation: None,
        subscription: None,
    },
    directive_definitions: {
        "skip": built_in_directive!("skip"),
        "include": built_in_directive!("include"),
        "deprecated": built_in_directive!("deprecated"),
        "specifiedBy": built_in_directive!("specifiedBy"),
    },
    types: {
        "__Schema": built_in_type!("__Schema"),
        "__Type": built_in_type!("__Type"),
        "__TypeKind": built_in_type!("__TypeKind"),
        "__Field": built_in_type!("__Field"),
        "__InputValue": built_in_type!("__InputValue"),
        "__EnumValue": built_in_type!("__EnumValue"),
        "__Directive": built_in_type!("__Directive"),
        "__DirectiveLocation": built_in_type!("__DirectiveLocation"),
        "Int": built_in_type!("Int"),
        "String": built_in_type!("String"),
        "Boolean": built_in_type!("Boolean"),
        "Query": Object(
            0..60 @31 ObjectType {
                description: None,
                name: "Query",
                implements_interfaces: {},
                directives: [],
                fields: {
                    "name": Component {
                        origin: Definition,
                        node: 17..29 @31 FieldDefinition {
                            description: None,
                            name: "name",
                            arguments: [],
                            ty: Named(
                                "String",
                            ),
                            directives: [],
                        },
                    },
                    "example": Component {
                        origin: Definition,
                        node: 34..58 @31 FieldDefinition {
                            description: None,
                            name: "example",
                            arguments: [
                                42..52 @31 InputValueDefinition {
                                    description: None,
                                    name: "arg",
                                    ty: 47..52 @31 Named(
                                        "First",
                                    ),
                                    default_value: None,
                                    directives: [],
                                },
                            ],
                            ty: Named(
                                "Int",
                            ),
                            directives: [],
                        },
                    },
                },
            },
        ),
        "First": InputObject(
            62..110 @31 InputObjectType {
                description: None,
                name: "First",
                directives: [],
                fields: {
                    "second": Component {
                        origin: Definition,
                        node: 78..92 @31 InputValueDefinition {
                            description: None,
                            name: "second",
                            ty: 86..92 @31 Named(
                                "Second",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                    "value": Component {
                        origin: Definition,
                        node: 95..108 @31 InputValueDefinition {
                            description: None,
                            name: "value",
                            ty: 102..108 @31 Named(
                                "String",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                },
            },
        ),
        "Second": InputObject(
            112..163 @31 InputObjectType {
                description: None,
                name: "Second",
                directives: [],
                fields: {
                    "third": Component {
                        origin: Definition,
                        node: 129..145 @31 InputValueDefinition {
                            description: None,
                            name: "third",
                            ty: 136..145 @31 NonNullList(
                                NonNullNamed(
                                    "Third",
                                ),
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                    "value": Component {
                        origin: Definition,
                        node: 148..161 @31 InputValueDefinition {
                            description: None,
                            name: "value",
                            ty: 155..161 @31 Named(
                                "String",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                },
            },
        ),
        "Third": InputObject(
            165..213 @31 InputObjectType {
                description: None,
                name: "Third",
                directives: [],
                fields: {
                    "fourth": Component {
                        origin: Definition,
                        node: 181..195 @31 InputValueDefinition {
                            description: None,
                            name: "fourth",
                            ty: 189..195 @31 Named(
                                "Fourth",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                    "value": Component {
                        origin: Definition,
                        node: 198..211 @31 InputValueDefinition {
                            description: None,
                            name: "value",
                            ty: 205..211 @31 Named(
                                "String",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                },
            },
        ),
        "Fourth": InputObject(
            215..246 @31 InputObjectType {
                description: None,
                name: "Fourth",
                directives: [],
                fields: {
                    "first": Component {
                        origin: Definition,
                        node: 232..244 @31 InputValueDefinition {
                            description: None,
                            name: "first",
                            ty: 239..244 @31 Named(
                                "First",
                            ),
                            default_value: None,
                            directives: [],
                        },
                    },
                },
            },
        ),
    },
}
ExecutableDocument {
    sources: {
        1: SourceFile {
            path: "built_in.graphql",
            source_text: include_str!("built_in.graphql"),
        },
        31: SourceFile {
            path: "0030_cyclical_nullable_input_objects.graphql",
            source_text: "type Query {\n    name: String\n    example(arg: First): Int\n}\n\ninput First {\n  second: Second\n  value: String\n}\n\ninput Second {\n  third: [Third!]!\n  value: String\n}\n\ninput Third {\n  fourth: Fourth\n  value: String\n}\n\ninput Fourth {\n  first: First\n}",
        },
    },
    operations: OperationMap {
        anonymous: None,
        named: {},
    },
    fragments: {},
}