Skip to content

Instantly share code, notes, and snippets.

View serbasii's full-sized avatar

Serkan Erbaşı serbasii

View GitHub Profile
@serbasii
serbasii / MyObjectType.cs
Last active August 30, 2019 16:26
dotnet-graphql override AddField, get register type's description attribute and set FieldType
public class MyObjectType : ObjectGraphType<MyObject>
{
public MyObjectType()
{
Field(t => t.Code);
}
public override FieldType AddField(FieldType fieldType)
{
//var type_ = fieldType.Resolver.GetType().GetTypeInfo().GenericTypeArguments[0];
Type type = fieldType.Resolver.GetType().GetGenericArguments()[0];
# [
# {rabbit,
# [##
## Network Connectivity
## ====================
##
## By default, RabbitMQ will listen on all interfaces, using
## the standard (reserved) AMQP port.
##
## {tcp_listeners, [5672]},