├── examples
├── snowtooth
│ ├── .gitignore
│ ├── .github
│ │ └── README.md
│ └── Ballerina.toml
├── news_alerts
│ ├── Config.toml
│ ├── .github
│ │ └── README.md
│ ├── datasource.bal
│ ├── Ballerina.toml
│ └── resources
│ │ └── graphql-subscription-with-kafka-diagram.png
├── starwars
│ ├── .github
│ │ └── README.md
│ ├── tests
│ │ └── resources
│ │ │ └── documents
│ │ │ ├── droid.graphql
│ │ │ ├── search.graphql
│ │ │ ├── reviews.graphql
│ │ │ ├── createReview.graphql
│ │ │ └── hero.graphql
│ └── Ballerina.toml
└── simple_github_issue_tracker
│ ├── Config.toml
│ ├── tests
│ └── Config.toml
│ ├── .github
│ └── README.md
│ └── Ballerina.toml
├── .gitattributes
├── ballerina
├── tests
│ └── resources
│ │ ├── documents
│ │ ├── unknown_fragment.graphql
│ │ ├── invalid_argument1.graphql
│ │ ├── missing_required_argument.graphql
│ │ ├── invalid_argument2.graphql
│ │ ├── undefined_input_variables.graphql
│ │ ├── invalid_argument_with_valid_argument.graphql
│ │ ├── cache_utils_standardize.graphql
│ │ ├── subscriptions_with_invalid_introspections.graphql
│ │ ├── invalid_anonymous_subscriptions_with_introspections.graphql
│ │ ├── subscriptions_with_invalid_multiple_root_fields.graphql
│ │ ├── subtype_from_primitive_type.graphql
│ │ ├── unused_input_variables.graphql
│ │ ├── variables_with_invalid_type.graphql
│ │ ├── scalar_type_variable_with_input_object_value.graphql
│ │ ├── variable_default_null_value_with_non_null_type.graphql
│ │ ├── variables_with_unknown_type.graphql
│ │ ├── invalid_usage_of_nullable_variable.graphql
│ │ ├── variable_with_invalid_default_value1.graphql
│ │ ├── variables_with_missing_required_argument.graphql
│ │ ├── enum_type_default_value_with_string_literal.graphql
│ │ ├── input_variables_with_empty_input_object_value.graphql
│ │ ├── input_variables_with_invalid_argument_type.graphql
│ │ ├── variable_with_invalid_default_value2.graphql
│ │ ├── variable_with_invalid_default_value3.graphql
│ │ ├── field_object_missions.graphql
│ │ ├── directives_in_invalid_locations2.graphql
│ │ ├── field_object_mission.graphql
│ │ ├── type_introspection_disable.graphql
│ │ ├── cache_utils.graphql
│ │ ├── introspection_disable_with_typename_introspection.graphql
│ │ ├── block_string_standardize.graphql
│ │ ├── query_with_named_operation_exceeding_max_depth.graphql
│ │ ├── field_object_astronauts.graphql
│ │ ├── block_string.graphql
│ │ ├── unused_fragment.graphql
│ │ ├── field_object_missions_with_fragment.graphql
│ │ ├── field_object_mission_with_fragment.graphql
│ │ └── schema_introspection_disable.graphql
│ │ └── certs
│ │ └── ballerinaKeystore.p12
├── icon.png
└── modules
│ └── parser
│ └── tests
│ └── resources
│ └── documents
│ ├── read_comment_token.graphql
│ ├── multiple_anonymous_operations.graphql
│ ├── query_type_directives_with_mutation.graphql
│ ├── named_operation_with_anonymous_operation.graphql
│ └── block_string.graphql
├── ballerina-tests
├── graphql-service-test-suite
│ └── tests
│ │ └── resources
│ │ ├── documents
│ │ ├── scalar_arrays.graphql
│ │ ├── invalid_mutation.graphql
│ │ ├── empty_string.graphql
│ │ ├── enum_with_union.graphql
│ │ ├── returning_enum_array.graphql
│ │ ├── enum.graphql
│ │ ├── enum_inside_record.graphql
│ │ ├── null_as_enum_input.graphql
│ │ ├── query_without_default_parameter.graphql
│ │ ├── querying_table_without_selections.graphql
│ │ ├── scalar_arrays_with_errors.graphql
│ │ ├── scalar_nullable_arrays_with_errors.graphql
│ │ ├── enum_with_values_assigned.graphql
│ │ ├── float_as_input.graphql
│ │ ├── null_as_resource_function_name.graphql
│ │ ├── optional_enum_argument_without_value.graphql
│ │ ├── query_with_default_parameter.graphql
│ │ ├── requesting_object_without_fields.graphql
│ │ ├── resource_returning_arrays_missing_fields.graphql
│ │ ├── service_with_other_annotations.graphql
│ │ ├── type_name_introspection_on_operation.graphql
│ │ ├── coerce_int_to_decimal.graphql
│ │ ├── decimal_type_input.graphql
│ │ ├── enum_input_parameter.graphql
│ │ ├── functions_with_input_parameter.graphql
│ │ ├── id_input_type_validation_int.graphql
│ │ ├── input_with_escape_characters.graphql
│ │ ├── interface_field.graphql
│ │ ├── introspection_query_with_missing_selection.graphql
│ │ ├── list_type_with_default_value.graphql
│ │ ├── null_value_for_non_null_argument.graphql
│ │ ├── nullable_list_type_input_without_value.graphql
│ │ ├── returning_enum_array_with_errors.graphql
│ │ ├── coerce_int_input_to_float.graphql
│ │ ├── default_values_in_input_object_fields.graphql
│ │ ├── enum_type_variables.graphql
│ │ ├── id_input_type_validation_float_2.graphql
│ │ ├── id_input_type_validation_int_2.graphql
│ │ ├── id_input_type_validation_int_3.graphql
│ │ ├── input_with_unicode_characters.graphql
│ │ ├── list_type_input_with_empty_value.graphql
│ │ ├── nullable_input_for_nullable_list.graphql
│ │ ├── nullable_input_for_nullable_record.graphql
│ │ ├── resolver_returning_tables.graphql
│ │ ├── resource_returning_tables.graphql
│ │ ├── type_introspection_without_fields.graphql
│ │ ├── enum_invalid_input_parameter.graphql
│ │ ├── id_input_type_validation_float.graphql
│ │ ├── id_input_type_validation_int_or_nil.graphql
│ │ ├── id_input_type_validation_string_2.graphql
│ │ ├── invalid_introspection_query.graphql
│ │ ├── null_as_scalar_input.graphql
│ │ ├── optional_enum_argument_with_value.graphql
│ │ ├── request_invalid_field.graphql
│ │ ├── returning_nullable_enum_array_with_errors.graphql
│ │ ├── unknown_inline_fragment.graphql
│ │ ├── decimal_with_positive_infinity.graphql
│ │ ├── enum_input_parameter_as_string.graphql
│ │ ├── id_input_type_validation_decimal.graphql
│ │ ├── id_input_type_validation_decimal_2.graphql
│ │ ├── id_input_type_validation_float_or_nil.graphql
│ │ ├── id_input_type_validation_string.graphql
│ │ ├── input_object_with_enum_type_argument.graphql
│ │ ├── input_parameter_type_not_present_in_return_types.graphql
│ │ ├── mutation.graphql
│ │ ├── coerce_decimal_to_float.graphql
│ │ ├── decimal_with_negative_infinity.graphql
│ │ ├── decimal_with_negative_zero.graphql
│ │ ├── empty_block_string.graphql
│ │ ├── id_input_type_validation_string_or_nil.graphql
│ │ ├── id_input_type_validation_with_invalid_input_2.graphql
│ │ ├── nullable_variables_without_value.graphql
│ │ ├── optional_arrays_with_invalid_query.graphql
│ │ ├── resource_returning_service_object.graphql
│ │ ├── id_input_type_validation_decimal_or_nil.graphql
│ │ ├── list_type_input_with_variable.graphql
│ │ ├── null_as_enum_input_with_variable_value.graphql
│ │ ├── resolver_returning_tables_with_errors.graphql
│ │ ├── resource_returning_service_object_array.graphql
│ │ ├── type_name_introspection_on_record_types.graphql
│ │ ├── variables_with_default_null_value.graphql
│ │ ├── decimal_type_with_input_object_variable.graphql
│ │ ├── duplicate_input_variables.graphql
│ │ ├── hierarchical_resource_paths_with_same_field_repeating_2.graphql
│ │ ├── map.graphql
│ │ ├── nested_list_input_with_invalid_values_2.graphql
│ │ ├── non_null_type_variables_with_nullable_rgument.graphql
│ │ ├── null_value_for_nullable_input_object_with_error_added_to_context.graphql
│ │ ├── attach_service_with_query_to_http1_based_listener.graphql
│ │ ├── attach_service_with_query_to_http2_based_listener.graphql
│ │ ├── coerce_int_to_decimal_with_variable_input.graphql
│ │ ├── decimal_type_list_input.graphql
│ │ ├── enum_type_default_value_with_variables.graphql
│ │ ├── hierarchical_resource_paths.graphql
│ │ ├── id_input_type_validation_with_invalid_input_1.graphql
│ │ ├── input_object_with_float_type_variables.graphql
│ │ ├── invalid_query_with_distinct_service_unions.graphql
│ │ ├── list_type_input.graphql
│ │ ├── list_type_input_with_invalid_variables.graphql
│ │ ├── map_without_key_input.graphql
│ │ ├── null_value_for_defaultable_arguments.graphql
│ │ ├── null_value_for_non_null_argument_with_variable_value.graphql
│ │ ├── returning_recursive_service_type.graphql
│ │ ├── type_introspection_on_non_existing_type.graphql
│ │ ├── coerce_int_to_decimal_with_default_value.graphql
│ │ ├── complex_service.graphql
│ │ ├── decimal_type_list_with_variable_input.graphql
│ │ ├── directive_locations.graphql
│ │ ├── enum_value_introspection.graphql
│ │ ├── enum_with_values_assigned_using_variables.graphql
│ │ ├── fragment_on_invalid_type.graphql
│ │ ├── input_object.graphql
│ │ ├── input_object_with_invalid_type_variables1.graphql
│ │ ├── invalid_enum_type_default_value_with_variables.graphql
│ │ ├── list_type_with_enum_values.graphql
│ │ ├── list_type_with_variable_default_values_2.graphql
│ │ ├── null_as_scalar_input_with_variable_value.graphql
│ │ ├── null_value_in_input_object_field.graphql
│ │ ├── null_value_in_list_type_input_with_variables.graphql
│ │ ├── record_type_arrays.graphql
│ │ ├── type_name_introspection_on_service_types.graphql
│ │ ├── typename_introspection_on_type_record.graphql
│ │ ├── variables_with_coerce_int_input_to_float.graphql
│ │ ├── directives_skip_all_selections.graphql
│ │ ├── float_type_variable_with_default_value.graphql
│ │ ├── id_input_type_validation_with_invalid_input_5.graphql
│ │ ├── mutation_request_on_non_mutable_schema.graphql
│ │ ├── null_input_for_nullable_record_field.graphql
│ │ ├── querying_subfields_on_type_name.graphql
│ │ ├── typename_introspection_on_scalar.graphql
│ │ ├── complex_introspection_query.graphql
│ │ ├── id_input_validation_with_variable_1.graphql
│ │ ├── id_input_validation_with_variable_3.graphql
│ │ ├── input_object_with_missing_arguments.graphql
│ │ ├── list_type_inputs_with_nested_list.graphql
│ │ ├── map_with_valid_key.graphql
│ │ ├── null_value_for_nullable_list_type_input_with_variables.graphql
│ │ ├── nullable_list_type_input_with_invalid_value.graphql
│ │ ├── type_introspection_with_alias.graphql
│ │ ├── input_object_with_nested_input_object_variables.graphql
│ │ ├── invalid_query_from_service_object_resource.graphql
│ │ ├── type_introspection.graphql
│ │ ├── variable_default_value_with_coerce_int_input_to_float.graphql
│ │ ├── attach_service_with_mutation_to_http2_based_listener.graphql
│ │ ├── attch_service_with_mutation_to_http1_based_listener.graphql
│ │ ├── invalid_hierarchical_resource_paths.graphql
│ │ ├── list_type_input_with_null_value.graphql
│ │ ├── list_type_with_invalid_variable_default_values_6.graphql
│ │ ├── nested_map_without_key_input.graphql
│ │ ├── service_object_defined_as_record_field.graphql
│ │ ├── test_querying_on_transitive_type.graphql
│ │ ├── alias_on_error_path.graphql
│ │ ├── arrays_with_errors_in_record_field.graphql
│ │ ├── id_input_type_validation_int1.graphql
│ │ ├── input_object_with_invalid_arguments1.graphql
│ │ ├── input_object_with_variables.graphql
│ │ ├── list_type_with_invalid_enum_values.graphql
│ │ ├── list_type_with_invalid_variable_default_values_4.graphql
│ │ ├── nested_list_input_with_invalid_values_1.graphql
│ │ ├── null_value_in_input_object_field_with_variable_value.graphql
│ │ ├── type_introspection_in_invalid_place.graphql
│ │ ├── type_introspection_without_type_name_argument.graphql
│ │ ├── hierarchical_resource_paths_with_multiple_fields.graphql
│ │ ├── list_type_variables_inside_list_value.graphql
│ │ ├── list_type_with_variable_default_values_3.graphql
│ │ ├── list_type_with_variable_default_values_4.graphql
│ │ ├── non_null_input_for_nullable_record_field.graphql
│ │ ├── null_value_for_defaultable_arguments_with_variable.graphql
│ │ ├── null_value_for_nullable_input_object_with_variable_value.graphql
│ │ ├── resolver_returning_list_of_nested_service_objects.graphql
│ │ ├── resolver_returning_map_of_service_objects.graphql
│ │ ├── resolver_returning_table_of_nested_service_objects.graphql
│ │ ├── alias_on_hierarchical_resources.graphql
│ │ ├── ballerina_record_as_graphql_object.graphql
│ │ ├── fragments_on_record_objects.graphql
│ │ ├── invalid_block_strings.graphql
│ │ ├── list_type_with_invalid_variable_default_values_3.graphql
│ │ ├── non_null_list_type_variable_with_empty_list_value_2.graphql
│ │ ├── typename_introspection_on_schema_introspection.graphql
│ │ ├── fragment_with_invalid_field.graphql
│ │ ├── hierarchical_resource_paths_complete.graphql
│ │ ├── id_input_type_validation_int_array.graphql
│ │ ├── input_object_variables_with_invalid_type_name.graphql
│ │ ├── list_type_with_invalid_variable_default_values_5.graphql
│ │ ├── non_null_input_for_nullable_record.graphql
│ │ ├── block_strings_with_variable_default_value.graphql
│ │ ├── id_input_type_validation_with_invalid_input_3.graphql
│ │ ├── id_input_type_validation_with_invalid_input_6.graphql
│ │ ├── input_object_type_variables_inside_list_value.graphql
│ │ ├── list_type_variables_with_input_objects.graphql
│ │ ├── list_type_with_variable_default_values_1.graphql
│ │ ├── list_type_with_variable_default_values_9.graphql
│ │ ├── union_of_distinct_services_array_query_on_selected_types.graphql
│ │ ├── enum_introspection.graphql
│ │ ├── id_input_type_validation_return_record.graphql
│ │ ├── id_input_type_validation_with_invalid_input_4.graphql
│ │ ├── id_input_type_validation_with_invalid_input_7.graphql
│ │ ├── id_input_validation_with_variable_2.graphql
│ │ ├── list_type_variables_with_invalid_input_objects.graphql
│ │ ├── list_type_with_invalid_variable_default_values_1.graphql
│ │ ├── list_type_with_invalid_variable_default_values_2.graphql
│ │ ├── list_type_with_invalid_variable_default_values_8.graphql
│ │ ├── list_type_with_invalid_variable_default_values_9.graphql
│ │ ├── resource_returning_optional_service_object_arrays.graphql
│ │ ├── union_of_distinct_services_query_on_selected_types.graphql
│ │ ├── alias.graphql
│ │ ├── alias_with_invalid_field_name.graphql
│ │ ├── id_input_type_validation_array_2.graphql
│ │ ├── id_input_type_validation_float_array1.graphql
│ │ ├── list_type_variables_with_nested_list_in_input_object.graphql
│ │ ├── nullable_union_of_distinct_services_array_query_on_selected_types.graphql
│ │ ├── query_type_introspection.graphql
│ │ ├── union_types_with_field_returning_enum.graphql
│ │ ├── block_strings.graphql
│ │ ├── hierarchical_paths_same_type_in_multiple_paths.graphql
│ │ ├── id_input_type_validation_array_1.graphql
│ │ ├── id_input_type_validation_float_array.graphql
│ │ ├── id_input_type_validation_string_array.graphql
│ │ ├── list_type_within_input_objects_with_variables.graphql
│ │ ├── mutation_type_introspection.graphql
│ │ ├── nested_map.graphql
│ │ ├── typename_introspection_on_field.graphql
│ │ ├── directives_with_service_returning_objects_array.graphql
│ │ ├── empty_list_type_within_input_objects_with_variables.graphql
│ │ ├── id_input_type_validation_decimal_array.graphql
│ │ ├── invalid_list_type_within_input_objects_with_variables.graphql
│ │ ├── list_type_variables_with_invalid_nested_list_in_input_object.graphql
│ │ └── nested_records_array.graphql
│ │ └── expected_results
│ │ ├── directives_skip_all_selections.json
│ │ ├── hierarchical_paths_same_type_in_multiple_paths.json
│ │ ├── empty_string.json
│ │ ├── scalar_arrays.json
│ │ ├── empty_block_string.json
│ │ ├── enum_input_parameter.json
│ │ ├── enum_type_variables.json
│ │ ├── null_as_enum_input.json
│ │ ├── enum_inside_record.json
│ │ ├── enum_with_values_assigned.json
│ │ ├── null_as_resource_function_name.json
│ │ ├── decimal_type_input.json
│ │ ├── input_with_escape_characters.json
│ │ ├── nullable_input_for_nullable_list.json
│ │ ├── nullable_input_for_nullable_record.json
│ │ ├── coerce_decimal_to_float.json
│ │ ├── coerce_int_input_to_float.json
│ │ ├── coerce_int_to_decimal.json
│ │ ├── default_values_in_input_object_fields.json
│ │ ├── float_as_input.json
│ │ ├── id_input_type_validation_int.json
│ │ ├── input_with_unicode_characters.json
│ │ ├── list_type_with_enum_values.json
│ │ ├── nullable_variables_without_value.json
│ │ ├── optional_enum_argument_with_value.json
│ │ ├── service_with_other_annotations.json
│ │ ├── variables_with_default_null_value.json
│ │ ├── decimal_with_negative_zero.json
│ │ ├── enum.json
│ │ ├── enum_type_default_value_with_variables.json
│ │ ├── enum_with_values_assigned_using_variables.json
│ │ ├── functions_with_input_parameter.json
│ │ ├── id_input_type_validation_float.json
│ │ ├── id_input_type_validation_float_2.json
│ │ ├── id_input_type_validation_int_2.json
│ │ ├── id_input_type_validation_string.json
│ │ ├── input_object_with_enum_type_argument.json
│ │ ├── list_type_with_default_value.json
│ │ ├── non_null_input_for_nullable_record.json
│ │ ├── null_as_enum_input_with_variable_value.json
│ │ ├── optional_enum_argument_without_value.json
│ │ ├── returning_enum_array.json
│ │ ├── type_introspection_on_non_existing_type.json
│ │ ├── type_name_introspection_on_operation.json
│ │ ├── decimal_type_list_input.json
│ │ ├── id_input_type_validation_decimal.json
│ │ ├── id_input_type_validation_decimal_2.json
│ │ ├── id_input_type_validation_int_or_nil.json
│ │ ├── id_input_type_validation_string_2.json
│ │ ├── input_with_intersection_parameter.json
│ │ ├── list_type_input.json
│ │ ├── list_type_input_with_empty_value.json
│ │ ├── list_type_inputs_with_nested_list.json
│ │ ├── mutation.json
│ │ ├── null_input_for_nullable_record_field.json
│ │ ├── decimal_type_with_input_object_variable.json
│ │ ├── float_type_variable_with_default_value.json
│ │ ├── id_input_type_validation_decimal_or_nil.json
│ │ ├── id_input_type_validation_float_or_nil.json
│ │ ├── id_input_type_validation_string_or_nil.json
│ │ ├── id_input_validation_with_variable_1.json
│ │ ├── id_input_validation_with_variable_3.json
│ │ ├── input_parameter_type_not_present_in_return_types.json
│ │ ├── input_with_intersection_parameter_reference.json
│ │ ├── list_type_variables_inside_list_value.json
│ │ ├── list_type_with_variable_default_values_3.json
│ │ ├── list_type_with_variable_default_values_4.json
│ │ ├── list_type_with_variable_default_values_9.json
│ │ ├── non_null_input_for_nullable_record_field.json
│ │ ├── non_null_type_variables_with_nullable_rgument.json
│ │ ├── union_of_distinct_services_query_on_selected_types.json
│ │ ├── variables_with_coerce_int_input_to_float.json
│ │ ├── block_strings.json
│ │ ├── coerce_int_to_decimal_with_default_value.json
│ │ ├── coerce_int_to_decimal_with_variable_input.json
│ │ ├── decimal_type_with_input_object_default_value.json
│ │ ├── list_type_with_variable_default_values_2.json
│ │ ├── non_null_input_for_nullable_list.json
│ │ ├── null_value_in_list_type_input_with_variables.json
│ │ ├── nullable_list_type_input_without_value.json
│ │ ├── block_strings_with_variable_default_value.json
│ │ ├── directives_with_service_returning_objects_array.json
│ │ ├── input_object.json
│ │ ├── input_object_with_float_type_variables.json
│ │ ├── list_type_input_with_null_value.json
│ │ ├── list_type_input_with_variable.json
│ │ ├── list_type_with_input_objects.json
│ │ ├── map_with_valid_key.json
│ │ ├── query_with_default_parameter.json
│ │ ├── variable_default_value_with_coerce_int_input_to_float.json
│ │ ├── input_with_intersection_parameter_array.json
│ │ ├── input_with_non_intersection_type_referring_intersection_type.json
│ │ ├── interface_field.json
│ │ ├── null_as_scalar_input.json
│ │ ├── query_without_default_parameter.json
│ │ ├── returning_recursive_service_type.json
│ │ ├── decimal_type_list_with_default_input.json
│ │ ├── decimal_type_list_with_variable_input.json
│ │ ├── list_type_variables_with_input_objects.json
│ │ ├── list_type_with_variable_default_values_1.json
│ │ ├── null_value_for_nullable_list_type_input_with_variables.json
│ │ ├── test_querying_on_transitive_type.json
│ │ ├── attach_service_with_query_to_http1_based_listener.json
│ │ ├── attach_service_with_query_to_http2_based_listener.json
│ │ ├── id_input_type_validation_array_1.json
│ │ ├── id_input_type_validation_array_2.json
│ │ ├── id_input_validation_with_variable_2.json
│ │ ├── input_object_with_variables.json
│ │ ├── input_with_intersection_parameter_reference_array.json
│ │ ├── input_with_intersection_referring_non_intersection_type.json
│ │ ├── typename_introspection_on_type_record.json
│ │ ├── block_strings_with_double_quotes.json
│ │ ├── input_with_non_intersection_type_referring_intersection_type_as_a_variable.json
│ │ ├── null_value_for_defaultable_arguments.json
│ │ ├── null_value_in_input_object_field.json
│ │ ├── resolver_returning_tables.json
│ │ ├── resource_returning_service_object.json
│ │ ├── type_name_introspection_on_record_types.json
│ │ ├── block_strings_with_escaped_character.json
│ │ ├── hierarchical_resource_paths_with_same_field_repeating_2.json
│ │ ├── list_type_within_input_objects.json
│ │ ├── map.json
│ │ ├── null_as_scalar_input_with_variable_value.json
│ │ ├── test_quering_on_interface.json
│ │ ├── union_of_distinct_services_array_query_on_selected_types.json
│ │ ├── attach_service_with_mutation_to_http2_based_listener.json
│ │ ├── attch_service_with_mutation_to_http1_based_listener.json
│ │ ├── directives.json
│ │ ├── fragments_inside_fragments_when_returning_services.json
│ │ ├── variables_with_query_and_mutation.json
│ │ ├── null_value_for_defaultable_arguments_with_variable.json
│ │ ├── output_with_intersection_paramenter.json
│ │ ├── type_introspection_with_alias.json
│ │ ├── variables_with_multiple_operations.json
│ │ ├── null_value_for_nullable_input_object_with_variable_value.json
│ │ ├── null_value_in_input_object_field_with_variable_value.json
│ │ ├── nullable_union_of_distinct_services_array_query_on_selected_types.json
│ │ ├── resource_returning_optional_service_object_arrays.json
│ │ ├── resource_returning_service_object_array.json
│ │ ├── union_of_distinct_services_array_query_on_selected_types_fragment_on_root.json
│ │ ├── union_of_distinct_service_objects.json
│ │ ├── hierarchical_resource_paths.json
│ │ ├── id_input_type_validation_array_3.json
│ │ └── interfaces.json
├── graphql-interceptor-test-suite
│ └── tests
│ │ └── resources
│ │ ├── documents
│ │ ├── interceptors.graphql
│ │ ├── duplicate_interceptors.graphql
│ │ ├── interceptors_with_arrays.graphql
│ │ ├── interceptors_with_enum.graphql
│ │ ├── interceptors_with_null_value1.graphql
│ │ ├── interceptors_returning_error1.graphql
│ │ ├── interceptors_returning_error2.graphql
│ │ ├── execute_same_interceptor_multiple_times.graphql
│ │ ├── interceptors_with_null_value2.graphql
│ │ ├── interceptor_execution_order.graphql
│ │ ├── interceptors_returning_invalid_value.graphql
│ │ ├── interceptors_with_invalid_destructive_modification1.graphql
│ │ ├── interceptors_with_invalid_destructive_modification2.graphql
│ │ ├── interceptors_returning_error3.graphql
│ │ ├── interceptors_with_hierarchical_paths.graphql
│ │ ├── interceptors_with_invalid_destructive_modification4.graphql
│ │ ├── interceptors_with_table.graphql
│ │ ├── interceptors_with_invalid_destructive_modification3.graphql
│ │ ├── server_cache_with_interceptors.graphql
│ │ ├── server_cache_eviction_with_interceptors.graphql
│ │ ├── interceptors_returning_errors_with_hierarchical_resources.graphql
│ │ ├── interceptors_with_destructive_modification2.graphql
│ │ ├── interceptors_with_mutation.graphql
│ │ └── interceptors_with_service_object.graphql
│ │ └── expected_results
│ │ ├── duplicate_interceptors.json
│ │ ├── interceptors_with_null_value1.json
│ │ ├── execute_same_interceptor_multiple_times.json
│ │ ├── server_cache_with_interceptors_2.json
│ │ ├── interceptors_with_null_value2.json
│ │ ├── server_cache_with_interceptors_1.json
│ │ ├── server_cache_with_interceptors_3.json
│ │ ├── interceptors_with_enum.json
│ │ ├── interceptors.json
│ │ ├── interceptors_with_hierarchical_paths.json
│ │ └── interceptors_with_destructive_modification2.json
├── graphql-advanced-test-suite
│ └── tests
│ │ └── resources
│ │ ├── files
│ │ ├── sample1.json
│ │ ├── sample3.xml
│ │ └── sample2.txt
│ │ ├── expected_results
│ │ ├── server_cache_2.json
│ │ ├── server_cache_10.json
│ │ ├── server_cache_5.json
│ │ ├── server_cache_with_empty_input_2.json
│ │ ├── server_cache_with_errors_2.json
│ │ ├── constraints_configuration.json
│ │ ├── server_cache_eviction_with_TTL_1.json
│ │ ├── server_cache_eviction_with_TTL_3.json
│ │ ├── server_cache_with_list_input_7.json
│ │ ├── server_cache_with_null_values_1.json
│ │ ├── server_cache_eviction_with_TTL_2.json
│ │ ├── server_cache_4.json
│ │ ├── server_cache_eviction_with_list_inputs_1.json
│ │ ├── server_cache_eviction_with_list_inputs_3.json
│ │ ├── server_cache_records_with_non_optional_fields_3.json
│ │ ├── server_cache_with_empty_input_1.json
│ │ ├── server_cache_with_list_input_8.json
│ │ ├── server_cache_with_nullable_inputs_7.json
│ │ ├── server_cache_with_nullable_inputs_8.json
│ │ ├── field_object.json
│ │ ├── server_cache_3.json
│ │ ├── server_cache_1.json
│ │ ├── server_cache_9.json
│ │ ├── server_cache_with_dynamic_responses_1.json
│ │ ├── server_cache_with_list_input_1.json
│ │ ├── server_cache_with_list_input_4.json
│ │ ├── server_cache_with_list_input_6.json
│ │ ├── server_cache_with_union_1.json
│ │ ├── field_object_parameter_order1.json
│ │ ├── server_cache_with_input_object_2.json
│ │ ├── server_cache_with_list_input_2.json
│ │ ├── server_cache_with_null_values_2.json
│ │ ├── server_cache_with_partial_reponses_2.json
│ │ ├── server_cache_with_partial_reponses_1.json
│ │ ├── server_cache_with_partial_reponses_3.json
│ │ ├── server_cache_with_rec_2.json
│ │ ├── server_cache_with_union_3.json
│ │ ├── server_cache_with_arrays_2.json
│ │ ├── server_cache_with_dynamic_responses_2.json
│ │ ├── server_cache_with_dynamic_responses_6.json
│ │ ├── server_cache_with_union_2.json
│ │ ├── field_object_parameter_order2.json
│ │ ├── field_object_with_multiple_args.json
│ │ ├── server_cache_with_dynamic_responses_8.json
│ │ ├── server_cache_with_errors_5.json
│ │ ├── server_cache_with_input_object_1.json
│ │ ├── server_cache_with_input_object_3.json
│ │ ├── server_cache_with_null_values_3.json
│ │ ├── server_cache_with_rec_5.json
│ │ ├── server_cache_with_rec_3.json
│ │ ├── server_cache_with_svc_obj_2.json
│ │ ├── server_cache_with_unions_1.json
│ │ ├── server_cache_with_errors_3.json
│ │ ├── server_cache_with_svc_obj_1.json
│ │ ├── server_cache_with_svc_obj_3.json
│ │ ├── server_cache_with_unions_2.json
│ │ ├── server_cache_with_unions_3.json
│ │ ├── server_cache_records_with_non_optional_fields_1.json
│ │ ├── server_cache_with_nullable_inputs_2.json
│ │ ├── server_cache_eviction_with_list_inputs_2.json
│ │ └── server_cache_eviction_with_nullable_inputs_2.json
│ │ └── documents
│ │ ├── server_cache_with_errors.graphql
│ │ ├── server_cache_fields_with_TTL.graphql
│ │ ├── server_cache.graphql
│ │ ├── server_cache_operations_with_TTL.graphql
│ │ └── valid_complexity_query.graphql
├── graphql-test-common
│ ├── Ballerina.toml
│ └── README.md
├── graphql-subgraph-test-suite
│ └── tests
│ │ └── resources
│ │ ├── expected_results
│ │ └── test_entities_resolver_returning_null_value.json
│ │ └── documents
│ │ ├── querying_entities_field_with_null_argument.graphql
│ │ ├── querying_entities_field_with_list_of_null_values.graphql
│ │ └── querying_entities_field_with_object_argument.graphql
├── graphql-subscription-test-suite
│ └── tests
│ │ └── resources
│ │ └── documents
│ │ ├── subscriptions_with_records.graphql
│ │ ├── subscriptions_with_service_objects.graphql
│ │ └── subscriptions_with_variable_values.graphql
├── graphql-client-test-suite
│ └── tests
│ │ └── resources
│ │ └── documents
│ │ ├── fragments_on_record_objects.graphql
│ │ └── alias.graphql
└── graphql-dataloader-test-suite
│ └── tests
│ └── resources
│ └── documents
│ ├── dataloader_with_query.graphql
│ └── dataloader_with_subscription.graphql
├── load-tests
├── snowtooth
│ ├── deployment
│ │ └── kustomization.yaml
│ └── src
│ │ └── Ballerina.toml
├── book_reviews_mutation
│ ├── deployment
│ │ └── kustomization.yaml
│ └── src
│ │ └── Ballerina.toml
└── book_reviews_subscription
│ ├── deployment
│ └── kustomization.yaml
│ └── src
│ └── Ballerina.toml
├── gradle
└── wrapper
│ └── gradle-wrapper.jar
└── compiler-plugin-tests
└── src
└── test
└── resources
└── ballerina_sources
├── generator_tests
├── 01_scalar_types
│ └── Ballerina.toml
├── 02_record_types
│ └── Ballerina.toml
├── 03_service_types
│ └── Ballerina.toml
├── 04_union_types
│ └── Ballerina.toml
├── 07_enum_types
│ └── Ballerina.toml
├── 19_table_types
│ └── Ballerina.toml
├── 20_map_types
│ └── Ballerina.toml
├── 21_context_init
│ └── Ballerina.toml
├── 24_dataloader
│ └── Ballerina.toml
├── 05_interface_types
│ └── Ballerina.toml
├── 06_intersection_types
│ └── Ballerina.toml
├── 08_input_scalar_types
│ └── Ballerina.toml
├── 09_input_enum_types
│ └── Ballerina.toml
├── 10_input_record_types
│ └── Ballerina.toml
├── 18_mutation_operation
│ └── Ballerina.toml
├── 23_federated_subgraph
│ └── Ballerina.toml
├── 11_recursive_record_types
│ └── Ballerina.toml
├── 12_recursive_service_types
│ └── Ballerina.toml
├── 17_special_input_types
│ └── Ballerina.toml
├── 13_hierarchical_resource_paths
│ └── Ballerina.toml
├── 27_inline_service_declarations
│ └── Ballerina.toml
├── 22_graphql_service_with_http_service
│ └── Ballerina.toml
├── 25_local_service_object_declarations
│ └── Ballerina.toml
├── 28_with_distinct_service_class_type
│ └── Ballerina.toml
├── 14_input_scalar_types_with_default_values
│ └── Ballerina.toml
├── 15_input_enum_types_with_default_values
│ └── Ballerina.toml
├── 16_input_record_types_with_default_values
│ └── Ballerina.toml
└── 26_object_field_service_object_declarations
│ └── Ballerina.toml
├── validator_tests
├── 15_file_upload
│ └── Ballerina.toml
├── 17_record_types
│ └── Ballerina.toml
├── 18_interfaces
│ └── Ballerina.toml
├── 21_subscriptions
│ └── Ballerina.toml
├── 22_interceptors
│ └── Ballerina.toml
├── 01_valid_return_types
│ └── Ballerina.toml
├── 02_valid_input_types
│ └── Ballerina.toml
├── 05_enum_as_input_type
│ └── Ballerina.toml
├── 11_input_object_type
│ └── Ballerina.toml
├── 16_intersection_types
│ └── Ballerina.toml
├── 30_returning_only_nil
│ └── Ballerina.toml
├── 04_enum_as_return_type
│ └── Ballerina.toml
├── 09_recursive_service_types
│ └── Ballerina.toml
├── 10_service_object_fields
│ └── Ballerina.toml
├── 27_invalid_return_types
│ └── Ballerina.toml
├── 28_invalid_input_types
│ ├── Ballerina.toml
│ └── modules
│ │ └── types
│ │ └── types.bal
├── 31_returning_only_error
│ └── Ballerina.toml
├── 33_invalid_input_unions
│ └── Ballerina.toml
├── 39_invalid_resource_paths
│ └── Ballerina.toml
├── 40_invalid_return_type_any
│ └── Ballerina.toml
├── 45_invalid_input_objects
│ └── Ballerina.toml
├── 47_invalid_context_object
│ └── Ballerina.toml
├── 50_invalid_resource_paths
│ └── Ballerina.toml
├── 53_non_distinct_interface
│ └── Ballerina.toml
├── 57_invalid_interceptor
│ └── Ballerina.toml
├── 61_unsupported_type_alias
│ └── Ballerina.toml
├── 03_valid_service_configurations
│ └── Ballerina.toml
├── 07_optional_input_parameters
│ └── Ballerina.toml
├── 12_context_as_first_parameter
│ └── Ballerina.toml
├── 14_list_type_input_parameters
│ └── Ballerina.toml
├── 26_invalid_resource_accessor
│ └── Ballerina.toml
├── 29_returning_only_error_or_nill
│ └── Ballerina.toml
├── 32_listener_init_parameters
│ └── Ballerina.toml
├── 34_invalid_return_type_unions
│ └── Ballerina.toml
├── 48_invalid_record_field_type
│ └── Ballerina.toml
├── 49_invalid_list_type_inputs
│ └── Ballerina.toml
├── 56_invalid_subscribe_service
│ └── Ballerina.toml
├── 76_invalid_empty_record_types
│ └── Ballerina.toml
├── 06_valid_listener_configurations
│ └── Ballerina.toml
├── 13_context_inside_returning_services
│ └── Ballerina.toml
├── 23_dynamically_attaching_service
│ └── Ballerina.toml
├── 25_service_missing_resource_function
│ └── Ballerina.toml
├── 35_invalid_accessor_in_service_types
│ └── Ballerina.toml
├── 37_invalid_inputs_in_service_types
│ └── Ballerina.toml
├── 38_invalid_listener_init_parameters
│ └── Ballerina.toml
├── 41_service_with_only_remote_methods
│ └── Ballerina.toml
├── 51_file_upload_in_invalid_locations
│ └── Ballerina.toml
├── 58_anonymous_records_as_field_type
│ └── Ballerina.toml
├── 62_invalid_usages_of_id_annotation
│ └── Ballerina.toml
├── 63_valid_usages_of_id_annotation
│ └── Ballerina.toml
├── 19_interfaces_implementing_interfaces
│ └── Ballerina.toml
├── 20_multiple_interface_implementations
│ └── Ballerina.toml
├── 24_multiple_listeners_on_same_service
│ └── Ballerina.toml
├── 36_invalid_return_types_in_service_types
│ └── Ballerina.toml
├── 42_remote_method_with_invalid_return_type
│ └── Ballerina.toml
├── 52_non_distinct_interface_implementation
│ └── Ballerina.toml
├── 71_invalid_usages_of_deprecated_directive
│ └── Ballerina.toml
├── 85_valid_server_side_cache_configurations
│ └── Ballerina.toml
├── 86_invalid_service_config_modification
│ └── Ballerina.toml
├── 87_annotations_with_custom_module_prefix
│ └── Ballerina.toml
├── 08_distinct_service_objects_as_return_type
│ └── Ballerina.toml
├── 64_prefetch_method_without_context_parameter
│ └── Ballerina.toml
├── 65_prefetch_method_with_invalid_parameters
│ └── Ballerina.toml
├── 66_prefetch_method_with_invalid_return_type
│ └── Ballerina.toml
├── 77_invalid_variable_usage_in_default_param
│ └── Ballerina.toml
├── 80_invalid_spread_field_usage_in_default_param
│ └── Ballerina.toml
├── 43_remote_methods_inside_returning_service_type
│ └── Ballerina.toml
├── 60_invalid_use_of_reserved_federation_type_names
│ └── Ballerina.toml
├── 67_service_with_valid_data_loader_configuration
│ └── Ballerina.toml
├── 68_service_with_invalid_prefetch_method_name_config
│ └── Ballerina.toml
├── 74_invalid_usages_of_variable_in_entity_annotation
│ └── Ballerina.toml
├── 79_invalid_short_hand_field_usage_in_default_param
│ └── Ballerina.toml
├── 81_invalid_spread_member_usage_in_default_param
│ └── Ballerina.toml
├── 82_invalid_complex_expression_usage_default_param
│ └── Ballerina.toml
├── 83_invalid_default_expression_in_input_object_field
│ └── Ballerina.toml
├── 44_missing_resource_method_from_returning_service_class
│ └── Ballerina.toml
├── 55_invalid_return_types_in_interface_implementations
│ └── Ballerina.toml
├── 59_invalid_use_of_reserved_federation_resolver_names
│ └── Ballerina.toml
├── 69_subscription_with_invalid_prefetch_method_name_config
│ └── Ballerina.toml
├── 70_prefetch_method_configuration_using_variable_value
│ └── Ballerina.toml
├── 72_invalid_usages_of_spread_field_in_entity_annotation
│ └── Ballerina.toml
├── 78_invalid_function_call_expression_as_default_param
│ └── Ballerina.toml
├── 54_invalid_resource_functions_in_interface_implementations
│ └── Ballerina.toml
├── 84_invalid_external_records_with_default_values_as_input_object
│ └── Ballerina.toml
├── 73_invalid_usages_of_short_hand_field_notation_in_entity_annotation
│ └── Ballerina.toml
└── 75_invalid_usages_of_variable_in_list_constructor_in_entity_annotation
│ └── Ballerina.toml
└── schema_validator_tests
├── 01_graphql_service
└── Ballerina.toml
├── 02_service_with_input_objects
└── Ballerina.toml
└── 03_service_resource_with_no_return
└── Ballerina.toml
/examples/snowtooth/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 |
--------------------------------------------------------------------------------
/examples/news_alerts/Config.toml:
--------------------------------------------------------------------------------
1 | ENABLE_GRAPHIQL = true
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Ensure all Java files use LF.
2 | *.java eol=lf
3 |
--------------------------------------------------------------------------------
/examples/snowtooth/.github/README.md:
--------------------------------------------------------------------------------
1 | ../GraphQL Snowtooth Example with Ballerina.md
--------------------------------------------------------------------------------
/examples/starwars/.github/README.md:
--------------------------------------------------------------------------------
1 | ../GraphQL Starwars API (SWAPI) in Ballerina.md
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/unknown_fragment.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ...friend
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/invalid_argument1.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isLegal(id: 4)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/missing_required_argument.graphql:
--------------------------------------------------------------------------------
1 | query{
2 | greet
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/invalid_argument2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isLegal(age: 20.5)
3 | }
4 |
--------------------------------------------------------------------------------
/examples/news_alerts/.github/README.md:
--------------------------------------------------------------------------------
1 | ../A Guide on GraphQL Subscriptions with Apache Kafka in Ballerina.md
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/scalar_arrays.graphql:
--------------------------------------------------------------------------------
1 | {
2 | ids
3 | }
4 |
--------------------------------------------------------------------------------
/examples/simple_github_issue_tracker/Config.toml:
--------------------------------------------------------------------------------
1 | authToken = "Your GitHub Access Token"
2 | owner = "GqlUser"
3 |
--------------------------------------------------------------------------------
/load-tests/snowtooth/deployment/kustomization.yaml:
--------------------------------------------------------------------------------
1 | resources:
2 | - snowtooth.yaml
3 | - ingress.yaml
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors.graphql:
--------------------------------------------------------------------------------
1 | {
2 | enemy
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ballerina-platform/module-ballerina-graphql/HEAD/ballerina/icon.png
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/undefined_input_variables.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | greet(name: $userName)
3 | }
4 |
--------------------------------------------------------------------------------
/examples/simple_github_issue_tracker/tests/Config.toml:
--------------------------------------------------------------------------------
1 | authToken = "Your GitHub Access Token"
2 | owner = "GqlUser"
3 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/duplicate_interceptors.graphql:
--------------------------------------------------------------------------------
1 | {
2 | age
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_mutation.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setAge
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_arrays.graphql:
--------------------------------------------------------------------------------
1 | {
2 | houses
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_enum.graphql:
--------------------------------------------------------------------------------
1 | {
2 | holidays
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_null_value1.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/empty_string.graphql:
--------------------------------------------------------------------------------
1 | {
2 | sendEmail(message: "")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_with_union.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | day(number: 10)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/returning_enum_array.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | holidays
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/directives_skip_all_selections.json:
--------------------------------------------------------------------------------
1 | { "data": {} }
2 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/invalid_argument_with_valid_argument.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | greet(name: "name", id: 3)
3 | }
4 |
--------------------------------------------------------------------------------
/examples/simple_github_issue_tracker/.github/README.md:
--------------------------------------------------------------------------------
1 | ../Integrating Multiple Endpoints to Expose as a GraphQL API in Ballerina.md
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/files/sample1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": "This is GraphQL File upload"
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/files/sample3.xml:
--------------------------------------------------------------------------------
1 |
2 | This is GraphQL File upload
3 |
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_returning_error1.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_returning_error2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | friends
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | time {
3 | weekday
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_inside_record.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | weekday(number: 3)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_as_enum_input.graphql:
--------------------------------------------------------------------------------
1 | {
2 | isHoliday(weekday: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/query_without_default_parameter.graphql:
--------------------------------------------------------------------------------
1 | {
2 | quoteById
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/querying_table_without_selections.graphql:
--------------------------------------------------------------------------------
1 | {
2 | employees
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/scalar_arrays_with_errors.graphql:
--------------------------------------------------------------------------------
1 | {
2 | idsWithErrors
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/scalar_nullable_arrays_with_errors.graphql:
--------------------------------------------------------------------------------
1 | {
2 | friends
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/cache_utils_standardize.graphql:
--------------------------------------------------------------------------------
1 | query{person(id:"1"){name,age,address(includeCity:true){city}}}
2 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/subscriptions_with_invalid_introspections.graphql:
--------------------------------------------------------------------------------
1 | subscription sub {
2 | __typename
3 | }
4 |
--------------------------------------------------------------------------------
/load-tests/book_reviews_mutation/deployment/kustomization.yaml:
--------------------------------------------------------------------------------
1 | resources:
2 | - book_reviews_mutation.yaml
3 | - ingress.yaml
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/execute_same_interceptor_multiple_times.graphql:
--------------------------------------------------------------------------------
1 | {
2 | age
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_null_value2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name
3 | age
4 | }
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_with_values_assigned.graphql:
--------------------------------------------------------------------------------
1 | {
2 | month(month: JANUARY)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/float_as_input.graphql:
--------------------------------------------------------------------------------
1 | {
2 | weightInPounds(weightInKg: 1.3)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_as_resource_function_name.graphql:
--------------------------------------------------------------------------------
1 | {
2 | null(value: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/optional_enum_argument_without_value.graphql:
--------------------------------------------------------------------------------
1 | {
2 | isHoliday
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/query_with_default_parameter.graphql:
--------------------------------------------------------------------------------
1 | {
2 | quoteById(id: 2)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/requesting_object_without_fields.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile(id: 4)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resource_returning_arrays_missing_fields.graphql:
--------------------------------------------------------------------------------
1 | {
2 | people
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/service_with_other_annotations.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | greeting
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_name_introspection_on_operation.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __typename
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-test-common/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "ballerina"
3 | name = "graphql_test_common"
4 | version = "1.17.0"
5 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/invalid_anonymous_subscriptions_with_introspections.graphql:
--------------------------------------------------------------------------------
1 | subscription {
2 | __typename
3 | }
4 |
--------------------------------------------------------------------------------
/examples/starwars/tests/resources/documents/droid.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | droid {
3 | name
4 | appearsIn
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptor_execution_order.graphql:
--------------------------------------------------------------------------------
1 | {
2 | quote
3 | status
4 | }
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/coerce_int_to_decimal.graphql:
--------------------------------------------------------------------------------
1 | {
2 | convertDecimalToFloat(value: 1)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_type_input.graphql:
--------------------------------------------------------------------------------
1 | {
2 | convertDecimalToFloat(value: 1.33)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_input_parameter.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isHoliday(weekday: SUNDAY)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/functions_with_input_parameter.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet(name: "Thisaru")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intId(intId: 56)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_with_escape_characters.graphql:
--------------------------------------------------------------------------------
1 | {
2 | type(version: "1.0.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/interface_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | characters {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/introspection_query_with_missing_selection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_default_value.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isIncludeHoliday
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_non_null_argument.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet(name: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_list_type_input_without_value.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | concat
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/returning_enum_array_with_errors.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | openingDays
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/hierarchical_paths_same_type_in_multiple_paths.json:
--------------------------------------------------------------------------------
1 | { "data": null }
2 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-test-common/README.md:
--------------------------------------------------------------------------------
1 | ## Package Overview
2 |
3 | This package provides APIs for testing the Ballerina GraphQL module.
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/subscriptions_with_invalid_multiple_root_fields.graphql:
--------------------------------------------------------------------------------
1 | subscription {
2 | name
3 | messages
4 | }
5 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/subtype_from_primitive_type.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet(name: "GraphQL") {
3 | first
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/unused_input_variables.graphql:
--------------------------------------------------------------------------------
1 | query($userName:String!, $extra:Int) {
2 | greet(name: $userName)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variables_with_invalid_type.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:Int!){
2 | greet(name: $userName)
3 | }
4 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ballerina-platform/module-ballerina-graphql/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/load-tests/book_reviews_subscription/deployment/kustomization.yaml:
--------------------------------------------------------------------------------
1 | resources:
2 | - book_reviews_subscription.yaml
3 | - ingress.yaml
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_returning_invalid_value.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name
3 | age
4 | }
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/coerce_int_input_to_float.graphql:
--------------------------------------------------------------------------------
1 | {
2 | weightInPounds(weightInKg: 1)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/default_values_in_input_object_fields.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name(person: {})
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_type_variables.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_float_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | floatId(floatId: 6)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intId(intId: "56")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int_3.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intId(intId: "56.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_with_unicode_characters.graphql:
--------------------------------------------------------------------------------
1 | {
2 | version(name: "SwanLake")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_input_with_empty_value.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | concat(words: [])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_input_for_nullable_list.graphql:
--------------------------------------------------------------------------------
1 | {
2 | cities(addresses: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_input_for_nullable_record.graphql:
--------------------------------------------------------------------------------
1 | {
2 | city(address: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resolver_returning_tables.graphql:
--------------------------------------------------------------------------------
1 | {
2 | all {
3 | isoCode
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resource_returning_tables.graphql:
--------------------------------------------------------------------------------
1 | {
2 | employees {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection_without_fields.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type(name: "Person")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/empty_string.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": ""
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/scalar_type_variable_with_input_object_value.graphql:
--------------------------------------------------------------------------------
1 | query($age:Int! = {}) {
2 | isLegal(age: $age)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variable_default_null_value_with_non_null_type.graphql:
--------------------------------------------------------------------------------
1 | query($age:Int! = null) {
2 | isLegal(age: $age)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variables_with_unknown_type.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName: userName) {
2 | greet(name: $userName)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_invalid_destructive_modification1.graphql:
--------------------------------------------------------------------------------
1 | {
2 | age
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_invalid_destructive_modification2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | friends
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_invalid_input_parameter.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isHoliday(weekday: FUNDAY)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_float.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | floatId(floatId: "6.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int_or_nil.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intId1(intId: 56)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_string_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | stringId(stringId: 44)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_introspection_query.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | greet
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_as_scalar_input.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile(id: null) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/optional_enum_argument_with_value.graphql:
--------------------------------------------------------------------------------
1 | {
2 | isHoliday(weekday: SUNDAY)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/request_invalid_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile(id: 4) {
3 | status
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/returning_nullable_enum_array_with_errors.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | specialHolidays
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/unknown_inline_fragment.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ... on on {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/scalar_arrays.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "ids": [0, 1, 2]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/invalid_usage_of_nullable_variable.graphql:
--------------------------------------------------------------------------------
1 | query($weight:Float) {
2 | weightInPounds(weightInKg:$weight)
3 | }
4 |
--------------------------------------------------------------------------------
/examples/starwars/tests/resources/documents/search.graphql:
--------------------------------------------------------------------------------
1 | query ($text:String!) {
2 | search(text: $text) {
3 | __typename
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateName": "John"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/duplicate_interceptors.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "age": 29
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_with_positive_infinity.graphql:
--------------------------------------------------------------------------------
1 | {
2 | convertDecimalToFloat(value: 1.7E309)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_input_parameter_as_string.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isHoliday(weekday: "SUNDAY")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_decimal.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | decimalId(decimalId: "45.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_decimal_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | decimalId(decimalId: 45)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_float_or_nil.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | floatId1(floatId: "6.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_string.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | stringId(stringId: "hello")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_enum_type_argument.graphql:
--------------------------------------------------------------------------------
1 | ($day:Date!) {
2 | isHoliday(date: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_parameter_type_not_present_in_return_types.graphql:
--------------------------------------------------------------------------------
1 | {
2 | isLegal(age: 21)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/mutation.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/empty_block_string.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": ""
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_input_parameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_type_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_as_enum_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/modules/parser/tests/resources/documents/read_comment_token.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name # Get Name
3 | # New Line
4 | address,age # Get Age
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variable_with_invalid_default_value1.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:String = 3) {
2 | greet(name: $userName )
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variables_with_missing_required_argument.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:String!) {
2 | greet(name: $userName )
3 | }
4 |
--------------------------------------------------------------------------------
/examples/news_alerts/datasource.bal:
--------------------------------------------------------------------------------
1 | isolated table key(id) userTable = table [];
2 |
3 | isolated table key(id) publisherTable = table [];
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_10.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateName": "Heisenberg"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/coerce_decimal_to_float.graphql:
--------------------------------------------------------------------------------
1 | ($weight:Float!) {
2 | weightInPounds(weightInKg:$weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_with_negative_infinity.graphql:
--------------------------------------------------------------------------------
1 | {
2 | convertDecimalToFloat(value: -1.7E309)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_with_negative_zero.graphql:
--------------------------------------------------------------------------------
1 | ($val:Decimal!) {
2 | convertDecimalToFloat(value:$val)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/empty_block_string.graphql:
--------------------------------------------------------------------------------
1 | {
2 | sendEmail(
3 | message: """
4 | """
5 | )
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_string_or_nil.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | stringId1(stringId: "hello")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intId(intId: "int")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_variables_without_value.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/optional_arrays_with_invalid_query.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchVehicles(keyword: "vehicle")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resource_returning_service_object.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet {
3 | generalGreeting
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_inside_record.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weekday": "WEDNESDAY"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_with_values_assigned.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "month": "Jan"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_as_resource_function_name.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "null": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subgraph-test-suite/tests/resources/expected_results/test_entities_resolver_returning_null_value.json:
--------------------------------------------------------------------------------
1 | { "data": { "_entities": [null] } }
2 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/enum_type_default_value_with_string_literal.graphql:
--------------------------------------------------------------------------------
1 | query ($day:Weekday = "MONDAY") {
2 | isHoliday(weekday: $day)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/input_variables_with_empty_input_object_value.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:String!) {
2 | greet(name: $userName )
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/input_variables_with_invalid_argument_type.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:String!) {
2 | greet(name: $userName )
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variable_with_invalid_default_value2.graphql:
--------------------------------------------------------------------------------
1 | query($weight:Float = "Walter") {
2 | weightInPounds(weightInKg:$weight)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/variable_with_invalid_default_value3.graphql:
--------------------------------------------------------------------------------
1 | query Greeting($userName:String = Walter) {
2 | greet (name: $userName )
3 | }
4 |
--------------------------------------------------------------------------------
/examples/snowtooth/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "wso2"
3 | name = "snowtooth"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = true
8 |
--------------------------------------------------------------------------------
/examples/starwars/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "wso2"
3 | name = "starwars"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = true
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_5.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateName": "Walter White"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_empty_input_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "status": []
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_errors_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isAdult": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/files/sample2.txt:
--------------------------------------------------------------------------------
1 | This
2 | is
3 | GraphQL
4 | file
5 | upload...!
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_returning_error3.graphql:
--------------------------------------------------------------------------------
1 | {
2 | person {
3 | name
4 | age
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors_with_null_value1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "name": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_decimal_or_nil.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | decimalId1(decimalId: "45.0")
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_input_with_variable.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String!]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_as_enum_input_with_variable_value.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resolver_returning_tables_with_errors.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | tasks {
3 | subTasks
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resource_returning_service_object_array.graphql:
--------------------------------------------------------------------------------
1 | {
2 | allVehicles {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_name_introspection_on_record_types.graphql:
--------------------------------------------------------------------------------
1 | {
2 | detective {
3 | __typename
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/variables_with_default_null_value.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday = null) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "convertDecimalToFloat": 1.33
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_escape_characters.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "type": "1.0.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/nullable_input_for_nullable_list.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "cities": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/nullable_input_for_nullable_record.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "city": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/field_object_missions.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | missions {
3 | id
4 | designation
5 | startDate
6 | endDate
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/examples/news_alerts/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "wso2"
3 | name = "news_alerts"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = true
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/constraints_configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "movie": "Interstellar"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_TTL_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "friend": "Harry"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_TTL_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "friend": "Potter"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_7.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "cities": ["London"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_null_values_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchEnemy": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_hierarchical_paths.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name {
3 | first
4 | last
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/execute_same_interceptor_multiple_times.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "age": 29
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_type_with_input_object_variable.graphql:
--------------------------------------------------------------------------------
1 | ($items:[Item!]!) {
2 | getSubTotal(items: $items)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/duplicate_input_variables.graphql:
--------------------------------------------------------------------------------
1 | ($userName:String!, $userName:Int!) {
2 | greet (name: $userName)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/hierarchical_resource_paths_with_same_field_repeating_2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | lift {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/map.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | company {
3 | workers(key: "id1") {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nested_list_input_with_invalid_values_2.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | getTotal(prices: [2, 3, 4, 5, 6])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/non_null_type_variables_with_nullable_rgument.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday!) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_nullable_input_object_with_error_added_to_context.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name(id: null)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/coerce_decimal_to_float.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 124.362
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/coerce_int_input_to_float.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 2.205
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/coerce_int_to_decimal.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "convertDecimalToFloat": 1.0
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/default_values_in_input_object_fields.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "name": "Sam"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/float_as_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 2.8665000000000003
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_int.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "intId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_unicode_characters.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "version": "SwanLake"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_enum_values.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isIncludeHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/nullable_variables_without_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/optional_enum_argument_with_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/service_with_other_annotations.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greeting": "Hello"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/variables_with_default_null_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/directives_in_invalid_locations2.graphql:
--------------------------------------------------------------------------------
1 | mutation @skip(if: false){
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/field_object_mission.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | mission(id: 1) {
3 | id
4 | designation
5 | startDate
6 | endDate
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_TTL_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateFriend": "Potter"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/attach_service_with_query_to_http1_based_listener.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | person {
3 | age
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/attach_service_with_query_to_http2_based_listener.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | person {
3 | age
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/coerce_int_to_decimal_with_variable_input.graphql:
--------------------------------------------------------------------------------
1 | ($val:Decimal!) {
2 | convertDecimalToFloat(value:$val)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_type_list_input.graphql:
--------------------------------------------------------------------------------
1 | {
2 | getTotalInDecimal(prices: [[1.33, 4.8], [5.6, 6], [5, 7, 8]])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_type_default_value_with_variables.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday = SUNDAY) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/hierarchical_resource_paths.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | first
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_1.graphql:
--------------------------------------------------------------------------------
1 | query ($input: ID!) {
2 | intId(intId: $input)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_float_type_variables.graphql:
--------------------------------------------------------------------------------
1 | ($weight:Weight!) {
2 | weightInPounds (weight:$weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_query_with_distinct_service_unions.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | profile(id: 200) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_input.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | concat(words: ["Hello!", "This", "is", "Ballerina", "GraphQL"])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_input_with_invalid_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/map_without_key_input.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | company {
3 | workers {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_defaultable_arguments.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | profile(name: null) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_non_null_argument_with_variable_value.graphql:
--------------------------------------------------------------------------------
1 | ($name: String!) {
2 | greet(name: $name)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/returning_recursive_service_type.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | trail(id: "blue-bird") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection_on_non_existing_type.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type(name: "INVALID") {
3 | kind
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_with_negative_zero.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "convertDecimalToFloat": 0.0
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "time": {
4 | "weekday": "MONDAY"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_type_default_value_with_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/enum_with_values_assigned_using_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "month": "May"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/functions_with_input_parameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": "Hello, Thisaru"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_float.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "floatId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_float_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "floatId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_int_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "intId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_string.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "stringId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_object_with_enum_type_argument.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_default_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isIncludeHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/non_null_input_for_nullable_record.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "city": "Albequerque"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_as_enum_input_with_variable_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/optional_enum_argument_without_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/returning_enum_array.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "holidays": ["SATURDAY", "SUNDAY"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/type_introspection_on_non_existing_type.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "__type": null
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/type_name_introspection_on_operation.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "__typename": "Query"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subscription-test-suite/tests/resources/documents/subscriptions_with_records.graphql:
--------------------------------------------------------------------------------
1 | subscription {
2 | books {
3 | name
4 | author
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_4.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": "Hello, John",
4 | "name": "John"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_list_inputs_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isAllMarried": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_list_inputs_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isAllMarried": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_records_with_non_optional_fields_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profiles": []
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_empty_input_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "status": ["dead", "alive"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_8.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "cities": ["London", "london"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/server_cache_with_interceptors_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateEnemy": "Snape"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/coerce_int_to_decimal_with_default_value.graphql:
--------------------------------------------------------------------------------
1 | ($val:Decimal! = 5) {
2 | convertDecimalToFloat(value:$val)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/complex_service.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | first
5 | last
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/decimal_type_list_with_variable_input.graphql:
--------------------------------------------------------------------------------
1 | ($prices:[[Decimal!]!]!) {
2 | getTotalInDecimal(prices:$prices)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/directive_locations.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | directives {
4 | locations
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_value_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | types {
4 | enumValues
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_with_values_assigned_using_variables.graphql:
--------------------------------------------------------------------------------
1 | query GetMonth($month: Month!) {
2 | month(month: $month)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/fragment_on_invalid_type.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ...data
3 | }
4 |
5 | fragment data on Person {
6 | name
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchProfile(profileDetail: { name: "Jessie", age: 28 }) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_invalid_type_variables1.graphql:
--------------------------------------------------------------------------------
1 | ($weight:WeightInKg!) {
2 | convertKgToGram (weight:$weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_enum_type_default_value_with_variables.graphql:
--------------------------------------------------------------------------------
1 | ($day:Weekday = SNDAY) {
2 | isHoliday(weekday: $day)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_enum_values.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isIncludeHoliday(days: [MONDAY, FRIDAY, TUESDAY, SATURDAY])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_variable_default_values_2.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String] = []) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_as_scalar_input_with_variable_value.graphql:
--------------------------------------------------------------------------------
1 | ($id:Int) {
2 | profile(id: $id) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_in_input_object_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | book(author: { name: null, id: 1 }) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_in_list_type_input_with_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/record_type_arrays.graphql:
--------------------------------------------------------------------------------
1 | {
2 | people {
3 | name
4 | address {
5 | city
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_name_introspection_on_service_types.graphql:
--------------------------------------------------------------------------------
1 | {
2 | teacher {
3 | name
4 | __typename
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/typename_introspection_on_type_record.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type(name: "Person") {
3 | __typename
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/variables_with_coerce_int_input_to_float.graphql:
--------------------------------------------------------------------------------
1 | ($weight:Float!) {
2 | weightInPounds(weightInKg:$weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_list_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotalInDecimal": [6.13, 11.6, 20.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_decimal.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "decimalId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_decimal_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "decimalId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_int_or_nil.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "intId1": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_string_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "stringId": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_intersection_parameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "name": "trigonocephalus"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello! This is Ballerina GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_input_with_empty_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Word list is empty"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_inputs_with_nested_list.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotal": [9.0, 22.0, 27.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/mutation.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "setName": {
4 | "name": "Heisenberg"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_input_for_nullable_record_field.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "accountNumber": 123456
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/certs/ballerinaKeystore.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ballerina-platform/module-ballerina-graphql/HEAD/ballerina/tests/resources/certs/ballerinaKeystore.p12
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/type_introspection_disable.graphql:
--------------------------------------------------------------------------------
1 | {
2 | person {
3 | name
4 | },
5 | __type(name: "Person") {
6 | name
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/examples/starwars/tests/resources/documents/reviews.graphql:
--------------------------------------------------------------------------------
1 | query ($epi:Episode = NEWHOPE) {
2 | reviews(episode: $epi) {
3 | stars
4 | commentary
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_nullable_inputs_7.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "status": ["dead", "alive"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_nullable_inputs_8.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "status": ["alive", "alive"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_invalid_destructive_modification4.graphql:
--------------------------------------------------------------------------------
1 | {
2 | student {
3 | id
4 | name
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors_with_null_value2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "name": null,
4 | "age": null
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/directives_skip_all_selections.graphql:
--------------------------------------------------------------------------------
1 | query getData {
2 | profile(id: 1) @skip(if: true) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/float_type_variable_with_default_value.graphql:
--------------------------------------------------------------------------------
1 | ($weight:Float = 4.3534) {
2 | weightInPounds(weightInKg: $weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_5.graphql:
--------------------------------------------------------------------------------
1 | query ($input: ID!) {
2 | decimalId(decimalId: $input)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/mutation_request_on_non_mutable_schema.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_input_for_nullable_record_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | accountNumber(account: { number: 123456, contact: null })
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/querying_subfields_on_type_name.graphql:
--------------------------------------------------------------------------------
1 | {
2 | detective {
3 | __typename {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/typename_introspection_on_scalar.graphql:
--------------------------------------------------------------------------------
1 | {
2 | detective {
3 | name {
4 | __typename
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_with_input_object_variable.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getSubTotal": 218.5555332
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/float_type_variable_with_default_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 9.599247
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_decimal_or_nil.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "decimalId1": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_float_or_nil.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "floatId1": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_string_or_nil.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "stringId1": "Hello, World"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_validation_with_variable_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithIdType": "4"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_validation_with_variable_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithIdType": "4.0"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_parameter_type_not_present_in_return_types.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isLegal": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_intersection_parameter_reference.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "city": "Albuquerque"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_variables_inside_list_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotal": [9.0, 22.0, 27.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_variable_default_values_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_variable_default_values_4.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotal": [6.0, 155.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_variable_default_values_9.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isIncludeHoliday": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/non_null_input_for_nullable_record_field.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "accountNumber": 123456
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/non_null_type_variables_with_nullable_rgument.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "isHoliday": false
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/union_of_distinct_services_query_on_selected_types.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/variables_with_coerce_int_input_to_float.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 2.205
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/01_scalar_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/02_record_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/03_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/04_union_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/07_enum_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/19_table_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/20_map_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/21_context_init/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/24_dataloader/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/15_file_upload/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/17_record_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/18_interfaces/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/21_subscriptions/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/22_interceptors/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/documents/server_cache_with_errors.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | isAdult(age: null)
3 | }
4 |
5 | query B {
6 | isAdult(age: 1)
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/field_object.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "person": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": "Hello, John",
4 | "name": "Walter White"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_table.graphql:
--------------------------------------------------------------------------------
1 | {
2 | employees {
3 | name
4 | }
5 | oldEmployees {
6 | name
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/complex_introspection_query.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | types {
4 | name
5 | kind
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_validation_with_variable_1.graphql:
--------------------------------------------------------------------------------
1 | query($input: PersonInput!) {
2 | inputObjectWithIdType(input: $input)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_validation_with_variable_3.graphql:
--------------------------------------------------------------------------------
1 | query ($input: PersonInput!){
2 | inputObjectWithIdType(input: $input)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_missing_arguments.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchProfile(profileDetail: { age: 34 }) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_inputs_with_nested_list.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | getTotal(prices: [[2, 3, 4], [4, 5, 6, 7], [3, 5, 6, 4, 2, 7]])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/map_with_valid_key.graphql:
--------------------------------------------------------------------------------
1 | query ($purpose: String!) {
2 | languages {
3 | backend: name(key: $purpose)
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_nullable_list_type_input_with_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_list_type_input_with_invalid_value.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | concat(words: ["Hello!", 5, true, {}, "GraphQL"])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection_with_alias.graphql:
--------------------------------------------------------------------------------
1 | {
2 | FieldType: __type(name: "__Field") {
3 | name
4 | kind
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/block_strings.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": "Hello,\n World!,\n\nYours,\n GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/coerce_int_to_decimal_with_default_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "convertDecimalToFloat": 5.0
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/coerce_int_to_decimal_with_variable_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "convertDecimalToFloat": 2.0
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_with_input_object_default_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getSubTotal": 218.5555332
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_variable_default_values_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Word list is empty"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/non_null_input_for_nullable_list.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "cities": ["Albequerque", "Hogwarts"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_in_list_type_input_with_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello! GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/nullable_list_type_input_without_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Word list is empty"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/05_interface_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/06_intersection_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/08_input_scalar_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/09_input_enum_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/10_input_record_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/18_mutation_operation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/23_federated_subgraph/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/01_valid_return_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/02_valid_input_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/05_enum_as_input_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/11_input_object_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/16_intersection_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/30_returning_only_nil/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/load-tests/snowtooth/src/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql"
3 | name = "snowtooth"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = false
8 | cloud = "k8s"
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": "Hello, Walter White",
4 | "name": "Walter White"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_9.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": "Hello, Heisenberg",
4 | "name": "Heisenberg"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_dynamic_responses_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "user": {
4 | "id": 1
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/server_cache_with_interceptors_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "enemy": "Tom Marvolo Riddle - voldemort"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/server_cache_with_interceptors_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "enemy": "Tom Marvolo Riddle - Snape"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_nested_input_object_variables.graphql:
--------------------------------------------------------------------------------
1 | ($info: Info!) {
2 | book(info:$info) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_query_from_service_object_resource.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | nonExisting
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type(name: "Person") {
3 | kind
4 | fields {
5 | name
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/variable_default_value_with_coerce_int_input_to_float.graphql:
--------------------------------------------------------------------------------
1 | ($weight:Float = 4) {
2 | weightInPounds(weightInKg: $weight)
3 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/block_strings_with_variable_default_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": "Hello,\n GraphQL!,"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/directives_with_service_returning_objects_array.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchVehicles": [{}, {}, {}]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_object.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchProfile": {
4 | "name": "Jessie Pinkman"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_object_with_float_type_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 155.45250000000001
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_input_with_null_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello! This is a Null Value ->"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_input_with_variable.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello! This is Ballerina GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_input_objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getSuggestions": [{ "movieName": "El Camino" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/map_with_valid_key.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "languages": {
4 | "backend": "Ballerina"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/query_with_default_parameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "quoteById": "I can make them hurt if I want to!"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/variable_default_value_with_coerce_int_input_to_float.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "weightInPounds": 8.82
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subscription-test-suite/tests/resources/documents/subscriptions_with_service_objects.graphql:
--------------------------------------------------------------------------------
1 | subscription getStudents {
2 | students {
3 | id
4 | name
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/11_recursive_record_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/12_recursive_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/17_special_input_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/schema_validator_tests/01_graphql_service/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/04_enum_as_return_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/09_recursive_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/10_service_object_fields/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/27_invalid_return_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/28_invalid_input_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/31_returning_only_error/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/33_invalid_input_unions/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/39_invalid_resource_paths/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/40_invalid_return_type_any/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/45_invalid_input_objects/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/47_invalid_context_object/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/50_invalid_resource_paths/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/53_non_distinct_interface/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/57_invalid_interceptor/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/61_unsupported_type_alias/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "users1": [{ "id": 1, "name": "John", "age": 25 }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_4.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "users2": [{ "id": 1, "name": "Shane", "age": 30 }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_6.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "users2": [{ "id": 1, "name": "Rock", "age": 22 }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_union_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getServices": [{ "name": "Jesse Pinkman", "age": 30 }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors_with_enum.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "holidays": ["SATURDAY", "SUNDAY", "MONDAY", "TUESDAY"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/attach_service_with_mutation_to_http2_based_listener.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/attch_service_with_mutation_to_http1_based_listener.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_hierarchical_resource_paths.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | first
5 | middle
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_input_with_null_value.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | concat(words: ["Hello!", "This", "is", "a", "Null", "Value", "->", null])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_6.graphql:
--------------------------------------------------------------------------------
1 | query ($prices: [[Float!]!] = null) {
2 | getTotal(prices: $prices)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nested_map_without_key_input.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | company {
3 | workers(key: "w1") {
4 | contacts
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/service_object_defined_as_record_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | latest {
3 | product {
4 | id
5 | }
6 | score
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/test_querying_on_transitive_type.graphql:
--------------------------------------------------------------------------------
1 | {
2 | animal(id: 11) {
3 | ... on Mule {
4 | isAggressive
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_intersection_parameter_array.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "names": ["trigonocephalus", "philarchus"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_non_intersection_type_referring_intersection_type.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "ownerName": "Sam"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/interface_field.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "characters": [{ "name": "Luke Skywalker" }, { "name": "R2D2" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_as_scalar_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/query_without_default_parameter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "quoteById": "I am a high-functioning sociapath!"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/returning_recursive_service_type.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "trail": {
4 | "name": "Blue Bird"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subscription-test-suite/tests/resources/documents/subscriptions_with_variable_values.graphql:
--------------------------------------------------------------------------------
1 | subscription getFilteredValues($value: Int!) {
2 | filterValues(value: $value)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/cache_utils.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | person(id: "1") {
3 | name,age
4 | address(includeCity: true) {
5 | city
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/13_hierarchical_resource_paths/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/27_inline_service_declarations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/03_valid_service_configurations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/07_optional_input_parameters/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/12_context_as_first_parameter/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/14_list_type_input_parameters/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/26_invalid_resource_accessor/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/28_invalid_input_types/modules/types/types.bal:
--------------------------------------------------------------------------------
1 | public type Service distinct service object {};
2 |
3 | public class Headers {}
4 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/29_returning_only_error_or_nill/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/32_listener_init_parameters/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/34_invalid_return_type_unions/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/48_invalid_record_field_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/49_invalid_list_type_inputs/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/56_invalid_subscribe_service/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/76_invalid_empty_record_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/field_object_parameter_order1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "student": {
4 | "name": "Jesse Pinkman"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_input_object_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "removeEnemy": {
4 | "name": "Enemy6"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_list_input_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "users1": [{ "id": 2, "name": "Jessie", "age": 17 }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_null_values_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addEnemy2": {
4 | "name": "Enemy6"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_partial_reponses_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateFriend": {
4 | "age": 45
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/alias_on_error_path.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | user: profile {
3 | name_fields: name {
4 | username: surname
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/arrays_with_errors_in_record_field.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | project {
3 | name
4 | tasks {
5 | subTasks
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int1.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intIdReturnRecord(intId: 67) {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_invalid_arguments1.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchProfile(profileDetail: { name: 5, age: "Arthur" }) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_with_variables.graphql:
--------------------------------------------------------------------------------
1 | ($profile: ProfileDetail!) {
2 | searchProfile(profileDetail:$profile) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_enum_values.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | isIncludeHoliday(days: [MONDAY, FRIDAY, TUESDAY, SATURDAY, WEdnesday, 4])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_4.graphql:
--------------------------------------------------------------------------------
1 | query ($prices: [[Float!]!] = [2, 3, 4, 5]) {
2 | getTotal(prices: $prices)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nested_list_input_with_invalid_values_1.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | getTotal(prices: [[2, 3, d], [4, 5, 6, "is"], [3, 5, 6, 4, true, 7]])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_in_input_object_field_with_variable_value.graphql:
--------------------------------------------------------------------------------
1 | ($author: Author) {
2 | book(author: $author) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection_in_invalid_place.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile(id: 1) {
3 | __type(name: "Person") {
4 | kind
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/type_introspection_without_type_name_argument.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type {
3 | kind
4 | fields {
5 | name
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_list_with_default_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotalInDecimal": [6.1886662, 11.63535, 20.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/decimal_type_list_with_variable_input.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getTotalInDecimal": [6.1886662, 11.63535, 20.0]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_variables_with_input_objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getSuggestions": [{ "movieName": "El Camino" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_with_variable_default_values_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Hello! This is Ballerina GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_for_nullable_list_type_input_with_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "concat": "Word list is empty"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/test_querying_on_transitive_type.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "animal": {
4 | "isAggressive": false
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/introspection_disable_with_typename_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | person{
3 | name,
4 | age,
5 | __typename
6 | },
7 | __typename
8 | }
9 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/22_graphql_service_with_http_service/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/25_local_service_object_declarations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/28_with_distinct_service_class_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/schema_validator_tests/02_service_with_input_objects/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/06_valid_listener_configurations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/13_context_inside_returning_services/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/23_dynamically_attaching_service/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/25_service_missing_resource_function/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/35_invalid_accessor_in_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/37_invalid_inputs_in_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/38_invalid_listener_init_parameters/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/41_service_with_only_remote_methods/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/51_file_upload_in_invalid_locations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/58_anonymous_records_as_field_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/62_invalid_usages_of_id_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/63_valid_usages_of_id_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/documents/server_cache_fields_with_TTL.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | friend
3 | }
4 |
5 | mutation B($name: String!) {
6 | updateFriend(name: $name)
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_partial_reponses_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getFriendService": {
4 | "age": 30
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_partial_reponses_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getFriendService": {
4 | "age": 45
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/hierarchical_resource_paths_with_multiple_fields.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | first
5 | last
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_variables_inside_list_value.graphql:
--------------------------------------------------------------------------------
1 | query ($list1: [Float!]!) {
2 | getTotal(prices: [[2, 3, 4], $list1, [3, 5, 6, 4, 2, 7]])
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_variable_default_values_3.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String] = [null, null, "Hello", "GraphQL"]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_variable_default_values_4.graphql:
--------------------------------------------------------------------------------
1 | query ($prices: [[Float!]!] = [[1, 2, 3], [34, 56, 65]]) {
2 | getTotal(prices: $prices)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/non_null_input_for_nullable_record_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | accountNumber(account: { number: 123456, contact: { number: "07123456789" } })
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_defaultable_arguments_with_variable.graphql:
--------------------------------------------------------------------------------
1 | mutation ($name: String) {
2 | profile(name: $name) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/null_value_for_nullable_input_object_with_variable_value.graphql:
--------------------------------------------------------------------------------
1 | ($author: Author) {
2 | book(author: $author) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resolver_returning_list_of_nested_service_objects.graphql:
--------------------------------------------------------------------------------
1 | {
2 | top3 {
3 | product {
4 | id
5 | }
6 | score
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resolver_returning_map_of_service_objects.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | account {
3 | details(key: "acc1") {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resolver_returning_table_of_nested_service_objects.graphql:
--------------------------------------------------------------------------------
1 | {
2 | all {
3 | product {
4 | id
5 | }
6 | score
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/attach_service_with_query_to_http1_based_listener.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "person": {
4 | "age": 50
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/attach_service_with_query_to_http2_based_listener.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "person": {
4 | "age": 50
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_array_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithNestedIdTypeInArray":{"id":"5", "name":"3"}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_array_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithNestedIdTypeArray":{"id":"5", "name":"3"}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_validation_with_variable_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithNestedIdType":{"id":"55", "name":"334"}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_object_with_variables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchProfile": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_intersection_parameter_reference_array.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "cities": ["Albuquerque", "Albuquerque"]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_intersection_referring_non_intersection_type.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "commonName": "Sri Lankan Tree Nymph"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/typename_introspection_on_type_record.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "__type": {
4 | "__typename": "__Type"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina/modules/parser/tests/resources/documents/multiple_anonymous_operations.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name
4 | }
5 | }
6 |
7 | {
8 | profile {
9 | age
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/ballerina/modules/parser/tests/resources/documents/query_type_directives_with_mutation.graphql:
--------------------------------------------------------------------------------
1 | mutation @skip(if: false){
2 | setName(name: "Heisenberg") @include(if: true) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/block_string_standardize.graphql:
--------------------------------------------------------------------------------
1 | {greet(msg:"""
2 | Hello,
3 | World!,
4 |
5 | This is
6 | GraphQL
7 | Block String""")}
8 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/query_with_named_operation_exceeding_max_depth.graphql:
--------------------------------------------------------------------------------
1 | query getData {
2 | people {
3 | name
4 | address {
5 | city
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/14_input_scalar_types_with_default_values/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/15_input_enum_types_with_default_values/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/16_input_record_types_with_default_values/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/schema_validator_tests/03_service_resource_with_no_return/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/19_interfaces_implementing_interfaces/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/20_multiple_interface_implementations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/24_multiple_listeners_on_same_service/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/36_invalid_return_types_in_service_types/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/42_remote_method_with_invalid_return_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/52_non_distinct_interface_implementation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/71_invalid_usages_of_deprecated_directive/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/85_valid_server_side_cache_configurations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/86_invalid_service_config_modification/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/87_annotations_with_custom_module_prefix/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/documents/server_cache.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | greet
3 | name(id: 1)
4 | }
5 |
6 | mutation B {
7 | updateName(name: "John", enableEvict: false)
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_rec_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addFriend": {
4 | "name": "John",
5 | "age": 30
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_union_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addEnemy": {
4 | "name": "Jake",
5 | "age": 22
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-client-test-suite/tests/resources/documents/fragments_on_record_objects.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ...data
3 | }
4 |
5 | fragment data on Query {
6 | people {
7 | name
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_invalid_destructive_modification3.graphql:
--------------------------------------------------------------------------------
1 | {
2 | person {
3 | name
4 | address {
5 | city
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/alias_on_hierarchical_resources.graphql:
--------------------------------------------------------------------------------
1 | query getData {
2 | sherlock: profile {
3 | address {
4 | hometown: city
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/ballerina_record_as_graphql_object.graphql:
--------------------------------------------------------------------------------
1 | query getPerson {
2 | detective {
3 | name
4 | address {
5 | street
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/fragments_on_record_objects.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ...data
3 | }
4 |
5 | fragment data on Query {
6 | people {
7 | name
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_block_strings.graphql:
--------------------------------------------------------------------------------
1 | {
2 | sendEmail(message: """Hello,
3 | World!,
4 | """
5 | Yours,
6 | GraphQL""")
7 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_3.graphql:
--------------------------------------------------------------------------------
1 | query ($prices: [[Float!]!] = [[1, true, 3], false]) {
2 | getTotal(prices: $prices)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/non_null_list_type_variable_with_empty_list_value_2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | getSuggestions(tvSeries: []) {
3 | movieName
4 | director
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/typename_introspection_on_schema_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | types {
4 | name
5 | __typename
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/block_strings_with_double_quotes.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": "Hello,\n \"\"World\"\"!,\n\nYours,\n GraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/input_with_non_intersection_type_referring_intersection_type_as_a_variable.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "ownerName": "Ruwangi"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_for_defaultable_arguments.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_in_input_object_field.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "book": {
4 | "name": "The Art of Electronics"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/resolver_returning_tables.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "all": [{ "isoCode": "AFG" }, { "isoCode": "SL" }, { "isoCode": "US" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/resource_returning_service_object.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "greet": {
4 | "generalGreeting": "Hello, world"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/type_name_introspection_on_record_types.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "detective": {
4 | "__typename": "Person"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/generator_tests/26_object_field_service_object_declarations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/08_distinct_service_objects_as_return_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/64_prefetch_method_without_context_parameter/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/65_prefetch_method_with_invalid_parameters/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/66_prefetch_method_with_invalid_return_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/77_invalid_variable_usage_in_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/80_invalid_spread_field_usage_in_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/load-tests/book_reviews_mutation/src/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql"
3 | name = "book_reviews_mutation"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = false
8 | cloud = "k8s"
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_arrays_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateFriend": {
4 | "name": "Tyler",
5 | "age": 28
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_dynamic_responses_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "user": {
4 | "id": 1,
5 | "name": "John"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_dynamic_responses_6.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "user": {
4 | "id": 1,
5 | "name": "White"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_union_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addEnemy": {
4 | "name": "Gandalf",
5 | "age": 68
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/server_cache_with_interceptors.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | enemy
3 | }
4 |
5 | mutation B {
6 | updateEnemy(name: "Snape", enableEvict: false)
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "enemy": "Harry Potter and the Chamber of Secrets --> Tom Marvolo Riddle - voldemort"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/fragment_with_invalid_field.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | ...data
3 | }
4 |
5 | fragment data on Query {
6 | people {
7 | invalid
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/hierarchical_resource_paths_complete.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | first
5 | last
6 | }
7 | age
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_int_array.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | intArrayReturnRecord(intId: [2, 3]) {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_variables_with_invalid_type_name.graphql:
--------------------------------------------------------------------------------
1 | ($profile: Details!) {
2 | searchProfile(profileDetail: $profile) {
3 | name
4 | }
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_5.graphql:
--------------------------------------------------------------------------------
1 | query ($prices: [[Float!]!] = [[], [4, 5], [null], null]) {
2 | getTotal(prices: $prices)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/non_null_input_for_nullable_record.graphql:
--------------------------------------------------------------------------------
1 | {
2 | city(
3 | address: { number: "308", street: "Negra Arroyo Lane", city: "Albequerque" }
4 | )
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/block_strings_with_escaped_character.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "sendEmail": "Hello,\n World!,\n\"\"\"\n Yours,\nGraphQL"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/hierarchical_resource_paths_with_same_field_repeating_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "lift": {
4 | "name": "Lift1"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/list_type_within_input_objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getMovie": [{ "movieName": "El Camino", "director": "Vince Gilligan" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/map.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "company": {
4 | "workers": {
5 | "name": "John Doe"
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_as_scalar_input_with_variable_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/test_quering_on_interface.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "animal": {
4 | "name": "WALTER",
5 | "sex": "male"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/union_of_distinct_services_array_query_on_selected_types.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "search": [{}, { "name": "Walter White" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subgraph-test-suite/tests/resources/documents/querying_entities_field_with_null_argument.graphql:
--------------------------------------------------------------------------------
1 | {
2 | _entities(representations: null) {
3 | ... on Star {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/field_object_astronauts.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | astronauts {
3 | missions {
4 | id
5 | designation
6 | startDate
7 | endDate
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/43_remote_methods_inside_returning_service_type/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/60_invalid_use_of_reserved_federation_type_names/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/67_service_with_valid_data_loader_configuration/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/68_service_with_invalid_prefetch_method_name_config/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/74_invalid_usages_of_variable_in_entity_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/79_invalid_short_hand_field_usage_in_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/81_invalid_spread_member_usage_in_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/82_invalid_complex_expression_usage_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/83_invalid_default_expression_in_input_object_field/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/examples/news_alerts/resources/graphql-subscription-with-kafka-diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ballerina-platform/module-ballerina-graphql/HEAD/examples/news_alerts/resources/graphql-subscription-with-kafka-diagram.png
--------------------------------------------------------------------------------
/load-tests/book_reviews_subscription/src/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql"
3 | name = "book_reviews_subscription"
4 | version = "0.1.0"
5 |
6 | [build-options]
7 | observabilityIncluded = false
8 | cloud = "k8s"
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/field_object_parameter_order2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "student": {
4 | "name": "Skinny Pete",
5 | "id": 100
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/field_object_with_multiple_args.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "person": {
4 | "name": "Walter White",
5 | "age": 50
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_dynamic_responses_8.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "user": {
4 | "id": 1,
5 | "name": "Walter"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_errors_5.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addFriend": {
4 | "name": "Lalo Salamanca",
5 | "age": 44
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_input_object_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchEnemy": {
4 | "name": "Enemy6",
5 | "age": 12
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_input_object_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchEnemy": {
4 | "name": "Enemy6",
5 | "age": 12
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_null_values_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchEnemy": {
4 | "name": "Enemy6",
5 | "age": 12
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_rec_5.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addFriend": {
4 | "name": "Elliott Schwartz",
5 | "age": 51
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/server_cache_eviction_with_interceptors.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | enemy
3 | }
4 |
5 | mutation B {
6 | updateEnemy(name: "Snape", enableEvict: true)
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/block_strings_with_variable_default_value.graphql:
--------------------------------------------------------------------------------
1 | ($block: String = """
2 | Hello,
3 | GraphQL!,""" ){
4 | sendEmail(message: $block)
5 | }
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_3.graphql:
--------------------------------------------------------------------------------
1 | query ($input: [ID!]!){
2 | intArrayReturnRecord(intId: $input) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_6.graphql:
--------------------------------------------------------------------------------
1 | query ($input: [ID!]) {
2 | uuidArrayReturnRecord1(uuidId: $input) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/input_object_type_variables_inside_list_value.graphql:
--------------------------------------------------------------------------------
1 | query ($series1: TvSeries!) {
2 | getSuggestions(tvSeries: [$series1]) {
3 | movieName
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_variables_with_input_objects.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: [TvSeries!]!) {
2 | getSuggestions(tvSeries: $tvSeries) {
3 | movieName
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_variable_default_values_1.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String] = ["Hello!", "This", "is", "Ballerina", "GraphQL"]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_variable_default_values_9.graphql:
--------------------------------------------------------------------------------
1 | query ($days: [Weekday!] = [MONDAY, FRIDAY, TUESDAY, SATURDAY]) {
2 | isIncludeHoliday(days: $days)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/union_of_distinct_services_array_query_on_selected_types.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | search {
3 | ... on TeacherService {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/attach_service_with_mutation_to_http2_based_listener.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "setName": {
4 | "name": "Heisenberg"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/attch_service_with_mutation_to_http1_based_listener.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "setName": {
4 | "name": "Heisenberg"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/directives.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": {
5 | "last": "Holmes"
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/fragments_inside_fragments_when_returning_services.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "teacher": {
4 | "name": "Walter White"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/variables_with_query_and_mutation.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "addShape": {
4 | "name": "Cube",
5 | "edges": 12
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/block_string.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet(msg: """
3 | Hello,
4 | World!,
5 |
6 | This is
7 | GraphQL
8 | Block String""")
9 | }
10 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/44_missing_resource_method_from_returning_service_class/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/55_invalid_return_types_in_interface_implementations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/59_invalid_use_of_reserved_federation_resolver_names/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/69_subscription_with_invalid_prefetch_method_name_config/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/70_prefetch_method_configuration_using_variable_value/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/72_invalid_usages_of_spread_field_in_entity_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/78_invalid_function_call_expression_as_default_param/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/examples/simple_github_issue_tracker/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "wso2"
3 | name = "simple_github_issue_tracker"
4 | version = "0.1.0"
5 | distribution = "2201.6.0"
6 |
7 | [build-options]
8 | observabilityIncluded = true
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_rec_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateFriend": {
4 | "name": "Walter White Jr.",
5 | "age": 25
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_svc_obj_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateFriend": {
4 | "name": "Jesse Pinkman",
5 | "age": 30
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_unions_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "relationship": {
4 | "name": "Gus Fring",
5 | "status": "dead"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-client-test-suite/tests/resources/documents/alias.graphql:
--------------------------------------------------------------------------------
1 | query getPerson {
2 | sherlock: profile {
3 | name {
4 | first
5 | }
6 | address {
7 | city
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-dataloader-test-suite/tests/resources/documents/dataloader_with_query.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | authors(ids: [1, 2, 3]) {
3 | name
4 | books {
5 | id
6 | title
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-dataloader-test-suite/tests/resources/documents/dataloader_with_subscription.graphql:
--------------------------------------------------------------------------------
1 | subscription {
2 | authors {
3 | name
4 | books {
5 | id
6 | title
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/enum_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | types {
4 | name
5 | enumValues {
6 | name
7 | }
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_return_record.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | stringIdReturnRecord(stringId: "String ID") {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_4.graphql:
--------------------------------------------------------------------------------
1 | query ($input: [ID!]!) {
2 | decimalArrayReturnRecord(decimalId: $input) {
3 | name
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_with_invalid_input_7.graphql:
--------------------------------------------------------------------------------
1 | query ($input: [ID!]!) {
2 | floatArrayReturnRecordArray(floatIds: $input) {
3 | id
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_validation_with_variable_2.graphql:
--------------------------------------------------------------------------------
1 | query($input: NestedIdInput!) {
2 | inputObjectWithNestedIdType(input: $input) {
3 | id
4 | name
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_variables_with_invalid_input_objects.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: [TvSeries!]!) {
2 | getSuggestions(tvSeries: $tvSeries) {
3 | movieName
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_1.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [String] = ["Hello!", "This", "is", Ballerina, true]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_2.graphql:
--------------------------------------------------------------------------------
1 | query ($words: [Int] = ["Hello!", "This", "is", "Ballerina", "GraphQL"]) {
2 | concat(words: $words)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_8.graphql:
--------------------------------------------------------------------------------
1 | query ($days: [Weekday] = [MONDAY, FRIDAY, TUESDAY, SATURDAY]) {
2 | isIncludeHoliday(days: $days)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_with_invalid_variable_default_values_9.graphql:
--------------------------------------------------------------------------------
1 | query ($days: [Weekday!] = [MONDAY, FRIDAY, TUSDAY, SATURDAY]) {
2 | isIncludeHoliday(days: $days)
3 | }
4 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/resource_returning_optional_service_object_arrays.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchVehicles(keyword: "vehicle") {
3 | ... on Vehicle {
4 | id
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/union_of_distinct_services_query_on_selected_types.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | profile(id: 200) {
3 | ... on StudentService {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_for_defaultable_arguments_with_variable.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Sherlock Holmes"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/output_with_intersection_paramenter.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Walter White",
5 | "age": 52
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/type_introspection_with_alias.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "FieldType": {
4 | "name": "__Field",
5 | "kind": "OBJECT"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/variables_with_multiple_operations.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Walter White",
5 | "age": 50
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subgraph-test-suite/tests/resources/documents/querying_entities_field_with_list_of_null_values.graphql:
--------------------------------------------------------------------------------
1 | {
2 | _entities(representations: [null]) {
3 | ... on Star {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/unused_fragment.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | profile {
3 | name {
4 | first
5 | }
6 | }
7 | }
8 |
9 | fragment fullNameFragment on Name {
10 | first
11 | }
12 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/54_invalid_resource_functions_in_interface_implementations/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/examples/starwars/tests/resources/documents/createReview.graphql:
--------------------------------------------------------------------------------
1 | mutation ($epi:Episode!, $review: ReviewInput!) {
2 | createReview(episode: $epi, reviewInput: $review) {
3 | stars
4 | commentary
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/examples/starwars/tests/resources/documents/hero.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | hero(episode: EMPIRE) {
3 | ...on Human {
4 | name,
5 | mass,
6 | homePlanet
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_errors_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getFriendService": {
4 | "name": "Lalo Salamanca",
5 | "age": 44
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_svc_obj_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getFriendService": {
4 | "name": "Jesse Pinkman",
5 | "age": 23
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_svc_obj_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "getFriendService": {
4 | "name": "Jesse Pinkman",
5 | "age": 30
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_unions_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateAssociate": {
4 | "name": "Gus Fring",
5 | "status": "alive"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_unions_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "relationship": {
4 | "name": "Gus Fring",
5 | "status": "alive"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors_with_hierarchical_paths.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "name": {
4 | "first": "Harry",
5 | "last": "Potter"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/alias.graphql:
--------------------------------------------------------------------------------
1 | query getPerson {
2 | sherlock: profile {
3 | name {
4 | first
5 | }
6 | address {
7 | city
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/alias_with_invalid_field_name.graphql:
--------------------------------------------------------------------------------
1 | query getPerson {
2 | sherlock: profile(id: 0) {
3 | name: firstName
4 | address {
5 | city
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_array_2.graphql:
--------------------------------------------------------------------------------
1 | query($input: PersonArrInput!) {
2 | inputObjectWithNestedIdTypeArray(input: $input) {
3 | id
4 | name
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_float_array1.graphql:
--------------------------------------------------------------------------------
1 | query ($ids: [ID!]!) {
2 | floatArrayReturnRecordArray(floatIds: $ids) {
3 | name
4 | id
5 | age
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_variables_with_nested_list_in_input_object.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: [TvSeries!]!) {
2 | getSuggestions(tvSeries: $tvSeries) {
3 | movieName
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nullable_union_of_distinct_services_array_query_on_selected_types.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | services {
3 | ... on TeacherService {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/query_type_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | queryType {
4 | kind
5 | fields {
6 | name
7 | }
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/union_types_with_field_returning_enum.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | profile(id: 101) {
3 | ... on TeacherService {
4 | name
5 | holidays
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_for_nullable_input_object_with_variable_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "book": {
4 | "name": "Algorithms to Live By"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/null_value_in_input_object_field_with_variable_value.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "book": {
4 | "name": "The Art of Electronics"
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/nullable_union_of_distinct_services_array_query_on_selected_types.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "services": [{}, { "name": "Walter White" }, null]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/resource_returning_optional_service_object_arrays.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "searchVehicles": [{ "id": "V1" }, { "id": "V2" }, { "id": "V3" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/resource_returning_service_object_array.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "allVehicles": [{ "name": "Benz" }, { "name": "BMW" }, { "name": "Ford" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/union_of_distinct_services_array_query_on_selected_types_fragment_on_root.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "search": [{}, { "name": "Walter White" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina/modules/parser/tests/resources/documents/named_operation_with_anonymous_operation.graphql:
--------------------------------------------------------------------------------
1 | query getData {
2 | profile {
3 | name
4 | }
5 | }
6 |
7 | {
8 | profile {
9 | age
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/field_object_missions_with_fragment.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | missions {
3 | ... on Mission {
4 | id
5 | designation
6 | startDate
7 | endDate
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/84_invalid_external_records_with_default_values_as_input_object/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/documents/server_cache_operations_with_TTL.graphql:
--------------------------------------------------------------------------------
1 | query A {
2 | greet
3 | name(id: 1)
4 | }
5 |
6 | mutation B {
7 | updateName(name: "Heisenberg", enableEvict: false)
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/documents/valid_complexity_query.graphql:
--------------------------------------------------------------------------------
1 | query SimpleQuery {
2 | device(id: 2) {
3 | brand
4 | model
5 | ... on Phone {
6 | os
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_records_with_non_optional_fields_1.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profiles": [{ "name": "John" }, { "name": "Doe" }, { "name": "Jane" }]
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_with_nullable_inputs_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "removeEnemy": {
4 | "name": "Enemy1",
5 | "isMarried": false
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_returning_errors_with_hierarchical_resources.graphql:
--------------------------------------------------------------------------------
1 | {
2 | name
3 | age
4 | address {
5 | city
6 | street
7 | number
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_destructive_modification2.graphql:
--------------------------------------------------------------------------------
1 | {
2 | students {
3 | id
4 | name
5 | }
6 | teachers {
7 | id
8 | name
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/block_strings.graphql:
--------------------------------------------------------------------------------
1 | {
2 | sendEmail(
3 | message: """
4 | Hello,
5 | World!,
6 |
7 | Yours,
8 | GraphQL
9 | """
10 | )
11 | }
12 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/hierarchical_paths_same_type_in_multiple_paths.graphql:
--------------------------------------------------------------------------------
1 | {
2 | profile {
3 | name {
4 | address {
5 | street
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_array_1.graphql:
--------------------------------------------------------------------------------
1 | query($input: [NestedIdInput!]!) {
2 | inputObjectWithNestedIdTypeInArray(input: $input) {
3 | id
4 | name
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_float_array.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | floatArrayReturnRecord(floatId: ["0.8", "5.0", "6.9"]) {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_string_array.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | stringArrayReturnRecord(stringId: ["Hello", "World"]) {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_within_input_objects_with_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: TvSeries!) {
2 | getMovie(tvSeries: $tvSeries) {
3 | movieName
4 | director
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/mutation_type_introspection.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | mutationType {
4 | kind
5 | fields {
6 | name
7 | }
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nested_map.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | company {
3 | workers(key: "id3") {
4 | contacts(key: "home") {
5 | number
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/typename_introspection_on_field.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __type(name: "Person") {
3 | name
4 | fields {
5 | name
6 | __typename
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/union_of_distinct_service_objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": "Walter White",
5 | "subject": "Chemistry"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-subgraph-test-suite/tests/resources/documents/querying_entities_field_with_object_argument.graphql:
--------------------------------------------------------------------------------
1 | {
2 | _entities(representations: { name: "Acamar" }) {
3 | ... on Star {
4 | name
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina/modules/parser/tests/resources/documents/block_string.graphql:
--------------------------------------------------------------------------------
1 | {
2 | greet(msg: """
3 | Hello,
4 | World!,
5 |
6 | This is
7 | GraphQL
8 | Block String""")
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/field_object_mission_with_fragment.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | mission(id: 1) {
3 | ... on Mission {
4 | id
5 | designation
6 | startDate
7 | endDate
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/73_invalid_usages_of_short_hand_field_notation_in_entity_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/compiler-plugin-tests/src/test/resources/ballerina_sources/validator_tests/75_invalid_usages_of_variable_in_list_constructor_in_entity_annotation/Ballerina.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | org = "graphql_test"
3 | name = "test_package"
4 | version = "0.1.0"
5 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_list_inputs_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "updateEnemy": {
4 | "name": "Enemy3",
5 | "isMarried": true
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-advanced-test-suite/tests/resources/expected_results/server_cache_eviction_with_nullable_inputs_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "removeEnemy": {
4 | "name": "Enemy2",
5 | "isMarried": true
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_mutation.graphql:
--------------------------------------------------------------------------------
1 | mutation {
2 | setName(name: "Heisenberg") {
3 | name
4 | }
5 | setAge(age: 14) {
6 | name
7 | age
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/documents/interceptors_with_service_object.graphql:
--------------------------------------------------------------------------------
1 | {
2 | teacher {
3 | id
4 | name
5 | subject
6 | }
7 | student {
8 | id
9 | name
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-interceptor-test-suite/tests/resources/expected_results/interceptors_with_destructive_modification2.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "students": ["Ballerina", "GraphQL"],
4 | "teachers": ["Hello", "World!"]
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/directives_with_service_returning_objects_array.graphql:
--------------------------------------------------------------------------------
1 | {
2 | searchVehicles(keyword: "vehicle") {
3 | ... on Vehicle {
4 | id @skip(if: true)
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/empty_list_type_within_input_objects_with_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: TvSeries!) {
2 | getMovie(tvSeries: $tvSeries) {
3 | movieName
4 | director
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/id_input_type_validation_decimal_array.graphql:
--------------------------------------------------------------------------------
1 | query {
2 | decimalArrayReturnRecord(decimalId: ["0.8", "5.0", "6.9"]) {
3 | __typename
4 | id
5 | name
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/invalid_list_type_within_input_objects_with_variables.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: TvSeries!) {
2 | getMovie(tvSeries: $tvSeries) {
3 | movieName
4 | director
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/list_type_variables_with_invalid_nested_list_in_input_object.graphql:
--------------------------------------------------------------------------------
1 | query ($tvSeries: [TvSeries!]!) {
2 | getSuggestions(tvSeries: $tvSeries) {
3 | movieName
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/documents/nested_records_array.graphql:
--------------------------------------------------------------------------------
1 | {
2 | students {
3 | name
4 | courses {
5 | name
6 | books {
7 | name
8 | }
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/hierarchical_resource_paths.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "profile": {
4 | "name": {
5 | "first": "Sherlock"
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/id_input_type_validation_array_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "inputObjectWithNestedIdTypeInArray": {
4 | "id": "55",
5 | "name": "334"
6 | }
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina-tests/graphql-service-test-suite/tests/resources/expected_results/interfaces.json:
--------------------------------------------------------------------------------
1 | {
2 | "data": {
3 | "characters": [
4 | { "name": "Luke Skywalker", "id": 1 },
5 | { "name": "R2D2", "year": 1977 }
6 | ]
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/ballerina/tests/resources/documents/schema_introspection_disable.graphql:
--------------------------------------------------------------------------------
1 | {
2 | __schema {
3 | queryType {
4 | kind
5 | fields {
6 | name
7 | }
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------