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

Permit defining types as unknown #38

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Permit defining types as unknown #38

merged 1 commit into from
Nov 7, 2023

Conversation

captbaritone
Copy link
Owner

@captbaritone captbaritone commented Nov 7, 2023

For root types (Query, Mutation, Subscription) in most cases, it makes more sense to write them as an alias of unknown since we can't know at compile time what the executor will pass. I also suspect there are very few places where you actually need to define a root object where you wouldn't be better served exposing that data on context.

I suspect I will followup with a change which requires that you model top level types as unknown, at least for now. We may followup with something more advanced such as what's outlined here: #13 (comment).

Copy link

netlify bot commented Nov 7, 2023

Deploy Preview for grats failed.

Name Link
🔨 Latest commit dde8694
🔍 Latest deploy log https://app.netlify.com/sites/grats/deploys/6549bf6f355bed0008c596e6

@captbaritone captbaritone merged commit 97ed7d1 into main Nov 7, 2023
15 of 18 checks passed
@mandx
Copy link
Contributor

mandx commented Nov 7, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants