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

Feature: operations endpoints rather than automatically generated #1481

Open
Warxcell opened this issue Jul 11, 2024 · 6 comments
Open

Feature: operations endpoints rather than automatically generated #1481

Warxcell opened this issue Jul 11, 2024 · 6 comments

Comments

@Warxcell
Copy link

Warxcell commented Jul 11, 2024

It would be very cool if it was possible to write normal graphql queries/mutations/subscriptions and expose them thru REST rather than automatically generated endpoints based on graphql types.

That way you can tailor the data for specific client (Backend For Frontend pattern) - and nothing else.

Wundergraph has it: https://docs.wundergraph.com/docs/architecture/wundergraph-rpc-protocol-explained

@Urigo
Copy link
Collaborator

Urigo commented Aug 6, 2024

Yes we thought about it
Do you have a use case for it in production?

@Warxcell
Copy link
Author

Warxcell commented Aug 7, 2024

Backend-for-frontend pattern? Instead Frontend query things one-after-another + their relationship - backend could have ready-to-use query for frontend, for example: /api/homepage - which returns all data needed for homepage.

@Urigo
Copy link
Collaborator

Urigo commented Aug 8, 2024

I've meant if you specifically need to use it in your production product?

@Warxcell
Copy link
Author

Warxcell commented Aug 8, 2024

I don't need graphql to rest yet, but if I need it , i would use it this way.

@Urigo
Copy link
Collaborator

Urigo commented Aug 8, 2024

Thanks, the reason I'm asking is that we are looking for a design partner to work with getting it into production

@Warxcell
Copy link
Author

Warxcell commented Aug 8, 2024

Thanks, the reason I'm asking is that we are looking for a design partner to work with getting it into production

I think I could possibly help. I've done same thing as proof-of-concept for PHP's implementation of GraphQL.

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

No branches or pull requests

2 participants