graphql-dotnet / graphql-dotnet/conventions

Question regarding auto-generating Graph schema & types in FE

Open
#230 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
228
Forks
62
PR merge metrics
No merged PRs in 30d

Description

We're using a graph-api-generator library to generate all types in the frontend.
Queries always return a result -never null- and we have Angular 13 with strict typing.

When we generate the types, the outputTypes are generated as `Type | null | undefined` or `Type | any`.

I wonder if there is a way in backend to indicate non-null results (as in NonNull for input) ? If there is, how? :)

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.