From f0ebc0dfbe4d260129161ce6b6ce1d7ca44a325c Mon Sep 17 00:00:00 2001 From: Mike Mikhailov <45894304+wtask@users.noreply.github.com> Date: Fri, 28 Feb 2020 01:23:42 +0300 Subject: [PATCH] Fix a typo in sql example I think todo is referenced to user by user_id field, not by todo.id --- docs/content/reference/dataloaders.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/reference/dataloaders.md b/docs/content/reference/dataloaders.md index 2cf4ac7fb15..d1b3d7a7e14 100644 --- a/docs/content/reference/dataloaders.md +++ b/docs/content/reference/dataloaders.md @@ -39,7 +39,7 @@ work with whatever your favourite ORM is. The query executor will call the Query.Todos resolver which does a `select * from todo` and return N todos. Then for each of the todos, concurrently, call the Todo_user resolver, -`SELECT from USER where id = todo.id`. +`SELECT from USER where id = todo.user_id`. eg: