Created
December 1, 2018 08:02
-
-
Save MBehtemam/eba6dbb4351ad1e4b2d03970962acb33 to your computer and use it in GitHub Desktop.
First Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Field<TodoType>("todo", arguments: new QueryArguments( | |
new QueryArgument<NonNullGraphType<IntGraphType>> { Name = "id", Description = "id of todo" } | |
), | |
resolve: context => todoRepository.GetTodoById(context.GetArgument<int>("id")).Result | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment