hasura / hasura/graphql-engine

Action return type for nullable scalar is non-nullable

Open
#9,546 0 comments 1 reaction 0 assignees View on GitHub
k/bug t/gql-services
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.22.0

### Environment

OSS

### What is the current behaviour?

Action with nullable **scalar** return type has non-nullable return type in schema. It's only bad for scalar return types, it's fine for objects.

### What is the expected behaviour?

Action with a nullable scalar return type should have a nullable return type in the schema.

### How to reproduce the issue?

1. create action with nullable scalar return type

### Screenshots or Screencast

Action definition:
Snímek obrazovky 2023-04-06 v 15 01 51

In schema:
Snímek obrazovky 2023-04-06 v 15 01 20

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.