hotchoc - error CS0121: The call is ambiguous between the following methods or properties: 'SchemaRequestExecutorBuilderExtensions.AddTypes(IRequestExecutorBuilder

When you're trying to use AddTypes() to build up your service and if you bump into this error message. 

 error CS0121: The call is ambiguous between the following methods or properties: 'SchemaRequestExecutorBuilderExtensions.AddTypes(IRequestExecutorBuilder, params Type[])' and 'SchemaRequestExecutorBuilderExtensions.AddTypes(IRequestExecutorBuilder, params INamedType[])'
1>Done building project "Accounts.csproj" -- FAILED.


This is discussed here https://github.com/ChilliCream/graphql-platform/discussions/5845. 

 

And ensure your module is configured



Finally ensure that you have the proper attributed in place - as the code will be generated on the fly. For example, this is what my query looks like. 




And then try to compile and see if that works for you. It did work for me. 

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm