尝试关系查询
我们来探索一下已创建的关系的 GraphQL API。
query {todos {idtitleuser {idname}}}
你可以看到以下格式的响应:
如你所见,在同一个响应中,你会获得用户信息的结果,与你查询的结果完全一致。 这是一个一对一查询/对象关系的示例。
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs
![Promo](/learn/zh/graphql/hasura/static/hasura-free-ff60e409244e0ea12b5a3045d1a9096b.png)
![footer illustration](https://graphql-engine-cdn.hasura.io/learn-hasura/assets/footer-img.png)