@@ -16,6 +16,13 @@ namespace Linq2GraphQL.TestClient;
1616
1717public static class OrderExtensions
1818{
19+ [ GraphQLMember ( "myGradeMethod" ) ]
20+ [ Obsolete ( "This method should not be used anymore" ) ]
21+ public static string MyGradeMethod ( this Order order , [ GraphQLArgument ( "name" , "String!" ) ] string name )
22+ {
23+ return order . GetMethodValue < string > ( "myGradeMethod" , name ) ;
24+ }
25+
1926 [ GraphQLMember ( "orderHello" ) ]
2027 public static string OrderHello ( this Order order , [ GraphQLArgument ( "name" , "String!" ) ] string name , [ GraphQLArgument ( "first" , "Int!" ) ] int first )
2128 {
@@ -32,6 +39,13 @@ public static Address OrderAddress(this Order order, [GraphQLArgument("addressT
3239
3340public partial class Order : GraphQLTypeBase
3441{
42+ private LazyProperty < string > _myGradeMethod = new ( ) ;
43+ /// <summary>
44+ /// Do not use in Query, only to retrive result
45+ /// </summary>
46+ [ Obsolete ( "This method should not be used anymore" ) ]
47+ public string MyGradeMethod => _myGradeMethod . Value ( ( ) => GetFirstMethodValue < string > ( "myGradeMethod" ) ) ;
48+
3549 private LazyProperty < string > _orderHello = new ( ) ;
3650 /// <summary>
3751 /// Do not use in Query, only to retrive result
@@ -68,4 +82,9 @@ public partial class Order : GraphQLTypeBase
6882 [ JsonPropertyName ( "entryTime" ) ]
6983 public TimeSpan ? EntryTime { get ; set ; }
7084
85+ [ Obsolete ( "This propery is obsolete and should not be used!" ) ]
86+ [ GraphQLMember ( "grade" ) ]
87+ [ JsonPropertyName ( "grade" ) ]
88+ public string Grade { get ; set ; }
89+
7190}
0 commit comments