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"),
        },
        16: SourceFile {
            path: "0014_float_values.graphql",
            source_text: "type Query {\n  name(arg: WithAllKindsOfFloats): String\n}\n\ninput WithAllKindsOfFloats {\n  a_regular_float: Float = 1.2\n  an_integer_float: Float = 1234\n  a_float_that_doesnt_fit_an_int: Float = 9876543210\n  list_of_floats: [Float] = [4, 9876543210, 98765432109876543210]\n}\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"),
        "Float": built_in_type!("Float"),
        "String": built_in_type!("String"),
        "Boolean": built_in_type!("Boolean"),
        "Query": Object(
            0..56 @16 ObjectType {
                description: None,
                name: "Query",
                implements_interfaces: {},
                directives: [],
                fields: {
                    "name": Component {
                        origin: Definition,
                        node: 15..54 @16 FieldDefinition {
                            description: None,
                            name: "name",
                            arguments: [
                                20..45 @16 InputValueDefinition {
                                    description: None,
                                    name: "arg",
                                    ty: 25..45 @16 Named(
                                        "WithAllKindsOfFloats",
                                    ),
                                    default_value: None,
                                    directives: [],
                                },
                            ],
                            ty: Named(
                                "String",
                            ),
                            directives: [],
                        },
                    },
                },
            },
        ),
        "WithAllKindsOfFloats": InputObject(
            58..271 @16 InputObjectType {
                description: None,
                name: "WithAllKindsOfFloats",
                directives: [],
                fields: {
                    "a_regular_float": Component {
                        origin: Definition,
                        node: 89..117 @16 InputValueDefinition {
                            description: None,
                            name: "a_regular_float",
                            ty: 106..111 @16 Named(
                                "Float",
                            ),
                            default_value: Some(
                                114..117 @16 Float(
                                    1.2,
                                ),
                            ),
                            directives: [],
                        },
                    },
                    "an_integer_float": Component {
                        origin: Definition,
                        node: 120..150 @16 InputValueDefinition {
                            description: None,
                            name: "an_integer_float",
                            ty: 138..143 @16 Named(
                                "Float",
                            ),
                            default_value: Some(
                                146..150 @16 Int(
                                    1234,
                                ),
                            ),
                            directives: [],
                        },
                    },
                    "a_float_that_doesnt_fit_an_int": Component {
                        origin: Definition,
                        node: 153..203 @16 InputValueDefinition {
                            description: None,
                            name: "a_float_that_doesnt_fit_an_int",
                            ty: 185..190 @16 Named(
                                "Float",
                            ),
                            default_value: Some(
                                193..203 @16 Int(
                                    9876543210,
                                ),
                            ),
                            directives: [],
                        },
                    },
                    "list_of_floats": Component {
                        origin: Definition,
                        node: 206..269 @16 InputValueDefinition {
                            description: None,
                            name: "list_of_floats",
                            ty: 222..229 @16 List(
                                Named(
                                    "Float",
                                ),
                            ),
                            default_value: Some(
                                232..269 @16 List(
                                    [
                                        233..234 @16 Int(
                                            4,
                                        ),
                                        236..246 @16 Int(
                                            9876543210,
                                        ),
                                        248..268 @16 Int(
                                            98765432109876543210,
                                        ),
                                    ],
                                ),
                            ),
                            directives: [],
                        },
                    },
                },
            },
        ),
    },
}
ExecutableDocument {
    sources: {
        1: SourceFile {
            path: "built_in.graphql",
            source_text: include_str!("built_in.graphql"),
        },
        16: SourceFile {
            path: "0014_float_values.graphql",
            source_text: "type Query {\n  name(arg: WithAllKindsOfFloats): String\n}\n\ninput WithAllKindsOfFloats {\n  a_regular_float: Float = 1.2\n  an_integer_float: Float = 1234\n  a_float_that_doesnt_fit_an_int: Float = 9876543210\n  list_of_floats: [Float] = [4, 9876543210, 98765432109876543210]\n}\n",
        },
    },
    operations: OperationMap {
        anonymous: None,
        named: {},
    },
    fragments: {},
}