Skip to content

Instantly share code, notes, and snippets.

@MBehtemam
Created December 1, 2018 08:36
Show Gist options
  • Save MBehtemam/291e4353e6f6a2122c819c5b7ed97389 to your computer and use it in GitHub Desktop.
Save MBehtemam/291e4353e6f6a2122c819c5b7ed97389 to your computer and use it in GitHub Desktop.
Todo Schema
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