Beispiel #1
0
        private static string CreatePropertyName(GraphQLType graphQlType, GraphQLType typeConditionType,
                                                 string fieldName)
        {
            var isObjectAbstractType = graphQlType.TypeKind == TypeKind.UNION ||
                                       graphQlType.TypeKind == TypeKind.INTERFACE;
            var isTypeConditionInterface = typeConditionType?.TypeKind == TypeKind.INTERFACE;

            return(isObjectAbstractType && !isTypeConditionInterface && typeConditionType != null
                ? GraphQLSchema <TContext> .CreatePossibleTypePropertyName(typeConditionType.Name, fieldName)
                : fieldName);
        }