Skip to content

Input Union RFC: Move Requirements to "Criteria" #626

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

Merged
merged 6 commits into from
Oct 21, 2019

Conversation

binaryseed
Copy link
Collaborator

As discussed in the last Working Group meeting, this PR converts the "Requirements" section to an "Aims" section.

This is inline with the purpose of this document which is to gather all perspectives on the issue.

I've also added a few basic aims, one of which has an "objection"

@leebyron @IvanGoncharov @benjie

@binaryseed binaryseed changed the title Move Requirements to Aims Input Union RFC: Move Requirements to Aims Oct 14, 2019
@spawnia
Copy link
Member

spawnia commented Oct 15, 2019

I propose to name the section Criteria.

I think criteria is fitting, as that includes all of aims, nice-to-haves, hard requirements, anti-goals. It is just a list of things to consider, by which we can judge the proposed solutions.

@binaryseed binaryseed changed the title Input Union RFC: Move Requirements to Aims Input Union RFC: Move Requirements to "Criteria" Oct 15, 2019
Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

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

Let’s get this merged 👍

Copy link
Member

@spawnia spawnia left a comment

Choose a reason for hiding this comment

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

Let's merge it like this, we can add more points or iterate on the individual points in separate PR's.


### Input polymorphism matches output polymorphism

Any data structure that can be modeled with output type polymorphism should be able to be mirrored with Input polymorphism. Minimal transformation of outputs should be required to send a data structure back as inputs.
Copy link
Member

Choose a reason for hiding this comment

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

@binaryseed I personally object to this one since GraphQL was never about CRUD.
Moreover, it's perfectly normal to have two distinct type systems, for example, most the programming languages have classes (support polymorphism) and structs (doesn't support polymorphism at the same time). To not block I will try to summarise my objection into Objection note and submit as a separate PR.

@IvanGoncharov IvanGoncharov merged commit b2aca18 into graphql:master Oct 21, 2019
@IvanGoncharov
Copy link
Member

@binaryseed Sorry for delay and thanks for reaching out on Slack 👍

@binaryseed binaryseed deleted the input-union-aims branch October 21, 2019 21:48
@leebyron leebyron added the 📣 RFC document PR creates or changes document inside "rfc" folder label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📣 RFC document PR creates or changes document inside "rfc" folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants