chkimes / graphql-net

Convert GraphQL to IQueryable
MIT License
891 stars 86 forks source link

GraphQLTypeBuilder AddListField with another typeBuilder #99

Open ruzerix opened 5 years ago

ruzerix commented 5 years ago

Hello,

I stuck with shema setting like this

var per = schema.AddType<personal>(); //EFDbContext.personals per.AddListField("departments", EFDbContext.departments.Select(o => new { my_custom = o.xxx }));

when I use postman to call these graphql I get an error

Argument types do not match

I know that when use GraphQLTypeBuilder to add field must be the same type But if I want this, How I do ?

Thank you