Description:
Consider the following GraphQL service:
type AddressI record {
int number;
string street;
string city;
};
type AddressO record {
int number;
string street;
string city;
};
type Person record {
string name;
int age;
AddressO address;
};
service on new graphql:Listener(9000) {
resource function get name(AddressI address) returns Person {
return {
name: "Walter",
age: 51,
address: {
number: 308,
street: "Negra Arroyo Lane",
city: "Albequerqy"
}
};
}
}
Since AddressI and AddressO are defined separatetly, this should be a valid service. It needs to differentiate the AddressI in the function input parameter and the AddressO in the function return type Person at the compile plugging. Currently we can not validate this due to absence of distinct type for ballerina records.
Description: Consider the following GraphQL service:
Since
AddressI
andAddressO
are defined separatetly, this should be a valid service. It needs to differentiate theAddressI
in the function input parameter and theAddressO
in the function return typePerson
at the compile plugging. Currently we can not validate this due to absence ofdistinct
type for ballerina records.