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 Request: Action Relationship from table to action #6557

Open
fi0 opened this issue Feb 16, 2021 · 3 comments
Open

Feature Request: Action Relationship from table to action #6557

fi0 opened this issue Feb 16, 2021 · 3 comments

Comments

@fi0
Copy link

fi0 commented Feb 16, 2021

Action relationship can be created from an action to a local table.
Please also add support for creating a relationship from a local table to an action.

For instance,
An action accepts user_id as the input and return the first_name.
A local table includes a list of user_id.
And I'd like hasura to return a list of users that contain both user_id and first_name.

@esseswann
Copy link

This functionality is available through Remote Schemas

@fi0
Copy link
Author

fi0 commented Feb 20, 2021

It would be nice if non-GraphQL endpoints are also supported.
Or do you recommend using Remote Schemas with GraphQL in this case?

@esseswann
Copy link

Yes, you can create a relationship from your Hasura table to a Remote schema and it will automatically map corresponding entries
https://hasura.io/blog/remote-joins-a-graphql-api-to-join-database-and-other-data-sources/

@tirumaraiselvan tirumaraiselvan changed the title Feature Request: Action Relationship Feature Request: Action Relationship from table to action Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants