Try out Relationship Queries

Let's explore the GraphQL APIs for the relationship created.

query {
todos {
id
title
user {
id
name
}
}
}

You can see the response in the following format:

relationship query

As you can see, in the same response, you are getting the results for the user's information, exactly like you queried. This is an example of a one-to-one query/object relationship.

Close

Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.