Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Allow undefined for nullable graphql types #331

Merged
merged 9 commits into from
Jan 5, 2019

Conversation

kinolaev
Copy link
Contributor

@kinolaev kinolaev commented Dec 3, 2018

Related issues:
#278
prisma/prisma#3621

@MathiasKandelborg
Copy link

I've just encountered this issue, after beginning to write new resolvers with graphqlgen. It would be great to see this merged! Can I find information on a roadmap or something of the likes to make sure I update as soon as possible?

@jasonkuhrt
Copy link
Member

jasonkuhrt commented Dec 12, 2018

@MathiasKandelborg maybe for now try Github's new "watch releases only" feature

@timsuchanek
Copy link
Contributor

@kinolaev thanks a lot for the PR! Could you please update it to resolve the conflicts?

@kinolaev
Copy link
Contributor Author

Hello @timsuchanek!
Conflicts resolved.

Copy link
Member

@jasonkuhrt jasonkuhrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kinolaev, exciting to see this getting near the finish line!

@jasonkuhrt
Copy link
Member

Hey @kinolaev anything I can do to help? Would you mind if I jumped on the remaining TODOs here?

@jasonkuhrt
Copy link
Member

@timsuchanek thanks to our new compile check test step I discovered that, after rebasing, | undefined is valid in TypeScript but not FlowType. It felt good to have that payoff!

@jasonkuhrt
Copy link
Member

jasonkuhrt commented Jan 3, 2019

Almost there, but I just remembered that instead of:

  export interface ArgsPictures {
    first: number | null | undefined
  }

We want:

  export interface ArgsPictures {
    first?: number | null
  }

Not sure how I'll do that per-se as current rendering functions only deal with type rendering in the value area, not the key area. Hopefully won't be too painful :)

@jasonkuhrt
Copy link
Member

jasonkuhrt commented Jan 5, 2019

Alright, I think this is ready 🚢

Thanks @kinolaev for originally kicking off this PR!

@jasonkuhrt jasonkuhrt merged commit 1fddfec into prisma-labs:master Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants