Created
December 1, 2018 08:36
-
-
Save MBehtemam/291e4353e6f6a2122c819c5b7ed97389 to your computer and use it in GitHub Desktop.
Todo Schema
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
using System; | |
using GraphQL; | |
using GraphQL.Types; | |
namespace TodoAPI.Models | |
{ | |
public class TodoSchema : Schema | |
{ | |
public TodoSchema(Func<Type, GraphType> resolveType) | |
: base(resolveType) | |
{ | |
Query = (TodoQuery)resolveType(typeof(TodoQuery)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment