Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: error when using readonly graphql input #7261

Open
SasinduDilshara opened this issue Oct 15, 2024 · 0 comments
Open

[Bug]: error when using readonly graphql input #7261

SasinduDilshara opened this issue Oct 15, 2024 · 0 comments
Labels
module/graphql Issues related to Ballerina GraphQL module Type/Bug

Comments

@SasinduDilshara
Copy link

What happened?

I defined a graphql input with a read-only field.

public type StatementInput record {|

    string entityNo;

    account:Period[] & readonly periods;

|};

isolated resource function get statement(graphql:Context ctx, StatementInput[] input) returns Statement[]|error {

If I send a request to this gql service by separating document and variables, the service exits with the following error trace.

error: error while mapping 'periodStartDate': {ballerina/lang.map}InvalidUpdate


@SasinduDilshara SasinduDilshara added Type/Bug module/graphql Issues related to Ballerina GraphQL module labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/graphql Issues related to Ballerina GraphQL module Type/Bug
Projects
None yet
Development

No branches or pull requests

1 participant