Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

In MenuItemContentTypeBuilder you are creating the class directly:

ResolvedType = new MenuItemsListQueryObjectType(),

whereas in MenuItemInterface you are not:

Field<MenuItemsListQueryObjectType>("menuItemsList");

So the schema builder is asked to initialize an instance itself + use an already initialized instance, which is not allowed.

The easiest solution is likely to comment out the first reference, as you already have the type specified, letting the schema builder create a single instance itself:

Type = typeof(MenuItemsListQueryObjectType),
//ResolvedType = new MenuItemsListQueryObjectType(),

Replies: 4 comments 19 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
19 replies
@Shane32
Comment options

@Shane32
Comment options

@MikeAlhayek
Comment options

@Shane32
Comment options

Answer selected by MikeAlhayek
@MikeAlhayek
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants