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

Add support for Interfaces & Unions #5

Open
acron0 opened this issue Jan 11, 2019 · 6 comments
Open

Add support for Interfaces & Unions #5

acron0 opened this issue Jan 11, 2019 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@acron0
Copy link
Member

acron0 commented Jan 11, 2019

We would like to be able to use Interfaces and Unions in GraphQL. It's not immediately obvious how we might implement this, and we don't currently have a solid use case, but I understand it's a deal-breaker for some people who have considered Leona.

@acron0 acron0 added enhancement New feature or request help wanted Extra attention is needed labels Jan 11, 2019
@workshub
Copy link

workshub bot commented Sep 18, 2019

@charliejrgower started working on this issue via WorksHub.

@tolgraven
Copy link

tolgraven commented Sep 25, 2019

Thinking in earnest -> Whereas something like subscriptions is basically all about execution side, and in practice these two are also mainly about putting some additional requirements on field resolvers and request structure, that''s a bit insignificant compared to what direction you are modelling from in the first place.
If inheritance is saying "this, being an x, behaves like this", spec approach is surely saying "here's how it behaves, whatever it is - just keep it in line".

But of course you know that. Issue has obviously been up for a long time, but was the bounty as well? :O subtle in plain sight!!

In all seriousness though, and minding my whimsey and incorrect intuitions (see issue i opened) - what is the edge to trying to cover non-pred stuff more easily done in eg Lacinia straight, instead of stretching spec, which brings power but also limitations? Especially if several approaches can coexist :)

@tolgraven
Copy link

Definitely too neurotic about types being "defined" by their specs, in the end we're just talking keywords. With the unions themselves autocreated as needed for a query of that kind instead of explicitly, seems neat enough.

No children would be harmed because of an abstract mental dependency from resolver on own spec... haha. But the sorta passthrough any? specs likely for these queries, idunno.

@workshub
Copy link

workshub bot commented Dec 6, 2019

@ztrz started working on this issue via WorksHub.

@workshub
Copy link

workshub bot commented Dec 11, 2020

@Rastin2020 started working on this issue via WorksHub.

@workshub
Copy link

workshub bot commented Apr 2, 2022

A user started working on this issue via WorksHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants